Files
web-cad/frontend/src/styles/auth.css
T

862 lines
17 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Auth Pages Login, Register, Dashboard */
/* ─── Auth Page Layout ─────────────────────────────── */
.auth-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: var(--color-surface-2);
color: var(--color-text);
font-family: 'Inter', system-ui, sans-serif;
}
.auth-card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 2.5rem;
width: 100%;
max-width: 400px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.auth-title {
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 0.25rem 0;
text-align: center;
color: var(--color-primary);
}
.auth-subtitle {
font-size: 1rem;
color: var(--color-text-muted);
text-align: center;
margin: 0 0 1.5rem 0;
}
/* ─── Auth Form ────────────────────────────────────── */
.auth-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.auth-field {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
.auth-field label {
font-size: 0.8125rem;
font-weight: 500;
color: var(--color-text-muted);
}
.auth-field input {
padding: 0.625rem 0.875rem;
border: 1px solid var(--color-border);
border-radius: 6px;
background: var(--color-surface-3);
color: var(--color-text);
font-size: 0.875rem;
outline: none;
transition: border-color 0.15s;
}
.auth-field input:focus {
border-color: var(--color-primary);
}
.auth-button {
margin-top: 0.5rem;
padding: 0.625rem 1rem;
border: none;
border-radius: 6px;
background: var(--color-primary);
color: #fff;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s;
}
.auth-button:hover:not(:disabled) {
opacity: 0.9;
}
.auth-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* ─── Auth Error ───────────────────────────────────── */
.auth-error {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #ef4444;
padding: 0.625rem 0.875rem;
border-radius: 6px;
font-size: 0.8125rem;
margin-bottom: 1rem;
cursor: pointer;
text-align: center;
}
/* ─── Auth Switch Link ─────────────────────────────── */
.auth-switch {
text-align: center;
margin-top: 1.5rem;
font-size: 0.8125rem;
color: var(--color-text-muted);
}
.auth-link {
background: none;
border: none;
color: var(--color-primary);
cursor: pointer;
font-size: 0.8125rem;
font-weight: 500;
padding: 0;
text-decoration: none;
}
.auth-link:hover {
text-decoration: underline;
}
/* ─── Dashboard ────────────────────────────────────── */
.dashboard-page {
min-height: 100vh;
background: var(--color-surface-2);
color: var(--color-text);
font-family: 'Inter', system-ui, sans-serif;
display: flex;
flex-direction: column;
}
.dashboard-3col {
display: grid;
grid-template-columns: 240px 1fr 300px;
flex: 1;
gap: 1px;
background: var(--color-border);
overflow: hidden;
min-height: 0;
}
.dashboard-treeview {
background: var(--color-surface);
overflow-y: auto;
padding: 12px;
position: relative;
}
.dashboard-info-panel {
background: var(--color-surface);
overflow-y: auto;
padding: 16px;
}
.treeview-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.treeview-header h3 {
font-size: 14px;
font-weight: 600;
margin: 0;
color: var(--color-text);
}
.treeview-add-folder-btn {
background: var(--color-primary);
color: white;
border: none;
border-radius: 4px;
width: 24px;
height: 24px;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.treeview-add-folder-btn:hover { opacity: 0.85; }
.folder-create-form {
margin-bottom: 8px;
padding: 8px;
background: var(--color-surface-3);
border-radius: 6px;
border: 1px solid var(--color-border);
}
.folder-create-form input {
width: 100%;
padding: 4px 8px;
border: 1px solid var(--color-border);
border-radius: 4px;
background: var(--color-surface-2);
color: var(--color-text);
font-size: 13px;
outline: none;
box-sizing: border-box;
}
.folder-create-form input:focus { border-color: var(--color-primary); }
.folder-create-actions {
display: flex;
gap: 4px;
margin-top: 4px;
}
.folder-create-actions button {
padding: 4px 10px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
font-weight: 600;
}
.folder-create-actions button:first-child {
background: var(--color-primary);
color: white;
}
.folder-create-actions button:last-child {
background: transparent;
color: var(--color-text-muted);
border: 1px solid var(--color-border);
}
.folder-rename-form {
margin-bottom: 8px;
padding: 8px;
background: var(--color-surface-3);
border-radius: 6px;
border: 1px solid var(--color-border);
}
.folder-rename-form input {
width: 100%;
padding: 4px 8px;
border: 1px solid var(--color-border);
border-radius: 4px;
background: var(--color-surface-2);
color: var(--color-text);
font-size: 13px;
outline: none;
box-sizing: border-box;
}
.folder-rename-form input:focus { border-color: var(--color-primary); }
.folder-action-buttons {
display: inline-flex;
gap: 2px;
margin-left: 4px;
}
.folder-action-btn {
background: none;
border: none;
cursor: pointer;
padding: 2px 4px;
font-size: 12px;
color: var(--color-text-muted);
border-radius: 3px;
transition: color 0.15s, background 0.15s;
}
.folder-action-btn:hover { color: var(--color-primary); background: rgba(37, 99, 235, 0.1); }
.folder-action-btn.delete:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
/* Folder tree items (recursive, native drag targets) */
.folder-tree-item {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 8px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
color: var(--color-text);
transition: background 0.15s;
user-select: none;
}
.folder-tree-item:hover {
background: var(--color-surface-2);
}
.folder-tree-item.selected {
background: var(--color-primary);
color: white;
}
.folder-tree-item.drag-over {
background: var(--color-primary);
opacity: 0.7;
border: 2px dashed var(--color-primary);
border-radius: 4px;
}
.folder-chevron {
background: none;
border: none;
cursor: pointer;
color: var(--color-text-muted);
padding: 0;
width: 16px;
font-size: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.folder-chevron:hover {
color: var(--color-text);
}
.folder-tree-item.selected .folder-chevron {
color: rgba(255, 255, 255, 0.8);
}
.folder-chevron-placeholder {
width: 16px;
flex-shrink: 0;
}
.folder-tree-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.folder-count {
font-size: 11px;
color: var(--color-text-muted);
flex-shrink: 0;
}
.folder-tree-item.selected .folder-count {
color: rgba(255, 255, 255, 0.7);
}
.folder-rename-inline {
flex: 1;
padding: 2px 4px;
border: 1px solid var(--color-primary);
border-radius: 3px;
background: var(--color-surface);
color: var(--color-text);
font-size: 13px;
outline: none;
box-sizing: border-box;
}
.context-menu-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 5000;
}
.context-menu {
position: fixed;
z-index: 5001;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
min-width: 160px;
padding: 4px 0;
}
.context-menu-item {
display: block;
width: 100%;
text-align: left;
padding: 8px 16px;
background: none;
border: none;
cursor: pointer;
color: var(--color-text);
font-size: 13px;
transition: background 0.15s;
}
.context-menu-item:hover { background: rgba(37, 99, 235, 0.1); }
.context-menu-item.danger:hover { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.dashboard-project-card.selected {
border-color: var(--color-primary);
box-shadow: 0 0 0 1px var(--color-primary);
}
.dashboard-open-btn {
padding: 4px 10px;
border: 1px solid var(--color-primary);
border-radius: 4px;
background: var(--color-primary);
color: white;
cursor: pointer;
font-size: 12px;
font-weight: 600;
}
.dashboard-open-btn:hover { opacity: 0.85; }
/* ─── Info Panel ────────────────────────────────────── */
.info-panel-title {
font-size: 18px;
font-weight: 700;
margin: 0 0 8px 0;
color: var(--color-text);
}
.info-panel-title-input {
width: 100%;
font-size: 18px;
font-weight: 700;
margin: 0 0 8px 0;
color: var(--color-text);
background: var(--color-surface-3);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 6px 8px;
outline: none;
box-sizing: border-box;
font-family: 'Inter', system-ui, sans-serif;
}
.info-panel-title-input:focus {
border-color: var(--color-primary);
}
.info-panel-description {
font-size: 14px;
color: var(--color-text-muted);
margin: 0 0 16px 0;
line-height: 1.5;
}
.info-panel-desc-textarea {
width: 100%;
font-size: 14px;
color: var(--color-text-muted);
margin: 0 0 16px 0;
line-height: 1.5;
background: var(--color-surface-3);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 8px;
outline: none;
box-sizing: border-box;
font-family: 'Inter', system-ui, sans-serif;
resize: vertical;
min-height: 60px;
}
.info-panel-desc-textarea:focus {
border-color: var(--color-primary);
}
.info-panel-section {
margin-bottom: 20px;
}
.info-panel-section h4 {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--color-text-muted);
margin: 0 0 8px 0;
padding-bottom: 4px;
border-bottom: 1px solid var(--color-border);
}
.info-panel-meta {
margin: 0;
display: grid;
grid-template-columns: auto 1fr;
gap: 4px 12px;
}
.info-panel-meta dt {
font-size: 13px;
color: var(--color-text-muted);
font-weight: 500;
}
.info-panel-meta dd {
font-size: 13px;
color: var(--color-text);
margin: 0;
}
.info-panel-loading, .info-panel-empty {
font-size: 13px;
color: var(--color-text-muted);
padding: 8px 0;
}
.info-panel-shares {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.info-panel-share-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 8px;
border: 1px solid var(--color-border);
border-radius: 4px;
font-size: 13px;
}
.info-panel-share-email {
color: var(--color-text);
}
.info-panel-share-perm {
font-size: 11px;
text-transform: uppercase;
font-weight: 600;
padding: 1px 6px;
border-radius: 3px;
background: var(--color-border);
color: var(--color-text-muted);
}
.info-panel-open-btn {
width: 100%;
padding: 10px;
border: none;
border-radius: 6px;
background: var(--color-primary);
color: white;
font-size: 14px;
font-weight: 600;
cursor: pointer;
margin-top: 8px;
}
.info-panel-open-btn:hover { opacity: 0.85; }
.info-panel-save-btn {
width: 100%;
padding: 8px;
border: 1px solid var(--color-primary);
border-radius: 6px;
background: var(--color-surface);
color: var(--color-primary);
font-size: 13px;
font-weight: 600;
cursor: pointer;
margin-bottom: 8px;
transition: background 0.15s, color 0.15s;
}
.info-panel-save-btn:hover {
background: var(--color-primary);
color: white;
}
.info-panel-save-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.info-panel-placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
min-height: 200px;
}
.info-panel-placeholder p {
color: var(--color-text-muted);
font-size: 14px;
text-align: center;
}
/* Mobile Hamburger Button — nur auf Mobile sichtbar */
.dashboard-hamburger { display: none; }
@media (max-width: 768px) {
.dashboard-hamburger {
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
color: var(--color-text);
cursor: pointer;
padding: 4px;
margin-right: 8px;
}
.dashboard-3col {
grid-template-columns: 1fr;
position: relative;
}
/* Treeview: slide-in von links */
.dashboard-treeview {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: min(280px, 80vw);
z-index: 200;
transform: translateX(-100%);
transition: transform 280ms cubic-bezier(.32,.72,0,1);
box-shadow: 4px 0 16px rgba(0,0,0,0.3);
}
.dashboard-treeview.mobile-open {
transform: translateX(0);
}
/* Info-Panel: slide-in von rechts */
.dashboard-info-panel {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: min(320px, 85vw);
z-index: 200;
transform: translateX(100%);
transition: transform 280ms cubic-bezier(.32,.72,0,1);
box-shadow: -4px 0 16px rgba(0,0,0,0.3);
}
.dashboard-info-panel.mobile-open {
transform: translateX(0);
}
/* Scrim */
.dashboard-scrim {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.5);
z-index: 150;
}
/* Mobile Panel Close/Back Buttons */
.mobile-panel-close, .mobile-panel-back {
display: flex;
align-items: center;
gap: 4px;
background: none;
border: none;
color: var(--color-text);
cursor: pointer;
padding: 8px 12px;
font-size: 16px;
width: 100%;
border-bottom: 1px solid var(--color-border);
}
}
/* Desktop: Mobile-Buttons verstecken */
@media (min-width: 769px) {
.mobile-panel-close, .mobile-panel-back { display: none; }
.dashboard-scrim { display: none; }
}
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
border-bottom: 1px solid var(--color-border);
background: var(--color-surface);
}
.dashboard-brand {
display: flex;
align-items: center;
gap: 1rem;
}
.dashboard-brand h1 {
font-size: 1.25rem;
font-weight: 700;
margin: 0;
color: var(--color-primary);
}
.dashboard-user {
font-size: 13px;
color: var(--color-text-muted);
}
.dashboard-logout {
padding: 0.375rem 0.875rem;
border: 1px solid var(--color-border);
border-radius: 6px;
background: transparent;
color: var(--color-text);
font-size: 13px;
cursor: pointer;
transition: background 0.15s;
}
.dashboard-logout:hover {
background: rgba(255, 255, 255, 0.05);
}
.dashboard-content {
padding: 2rem;
overflow-y: auto;
background: var(--color-surface);
}
.dashboard-section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.dashboard-section-header h2 {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
}
.dashboard-create-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
background: var(--color-primary);
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.dashboard-create-form {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.dashboard-create-form input {
flex: 1;
min-width: 150px;
padding: 0.5rem 0.75rem;
border: 1px solid var(--color-border);
border-radius: 6px;
background: var(--color-surface-3);
color: var(--color-text);
font-size: 13px;
outline: none;
}
.dashboard-create-form input:focus {
border-color: var(--color-primary);
}
.dashboard-create-form button {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
}
.dashboard-create-form button:first-of-type {
background: var(--color-primary);
color: #fff;
}
.dashboard-create-form button:last-of-type {
background: transparent;
color: var(--color-text-muted);
border: 1px solid var(--color-border);
}
.dashboard-loading,
.dashboard-empty {
text-align: center;
color: var(--color-text-muted);
padding: 2rem;
}
.dashboard-project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
}
.dashboard-project-card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
padding: 1.25rem;
cursor: pointer;
transition: border-color 0.15s, transform 0.1s;
}
.dashboard-project-card:hover {
border-color: var(--color-primary);
transform: translateY(-2px);
}
.dashboard-project-card h3 {
font-size: 1rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
}
.dashboard-project-card p {
font-size: 13px;
color: var(--color-text-muted);
margin: 0 0 0.75rem 0;
}
.dashboard-project-meta {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
color: var(--color-text-muted);
}
.dashboard-delete-btn {
padding: 0.25rem 0.5rem;
border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: 4px;
background: transparent;
color: #ef4444;
font-size: 12px;
cursor: pointer;
}
.dashboard-delete-btn:hover {
background: rgba(239, 68, 68, 0.1);
}