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

651 lines
13 KiB
CSS
Raw Normal View History

/* Auth Pages Login, Register, Dashboard */
/* ─── Auth Page Layout ─────────────────────────────── */
.auth-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: var(--bg-primary, #1a1a2e);
color: var(--text-primary, #e0e0e0);
font-family: 'Inter', system-ui, sans-serif;
}
.auth-card {
background: var(--bg-secondary, #16213e);
border: 1px solid var(--border-color, #2a2a4a);
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(--accent-primary, #4a9eff);
}
.auth-subtitle {
font-size: 1rem;
color: var(--text-secondary, #888);
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(--text-secondary, #888);
}
.auth-field input {
padding: 0.625rem 0.875rem;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 6px;
background: var(--bg-input, #0f0f23);
color: var(--text-primary, #e0e0e0);
font-size: 0.875rem;
outline: none;
transition: border-color 0.15s;
}
.auth-field input:focus {
border-color: var(--accent-primary, #4a9eff);
}
.auth-button {
margin-top: 0.5rem;
padding: 0.625rem 1rem;
border: none;
border-radius: 6px;
background: var(--accent-primary, #4a9eff);
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(--text-secondary, #888);
}
.auth-link {
background: none;
border: none;
color: var(--accent-primary, #4a9eff);
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(--bg-primary, #1a1a2e);
color: var(--text-primary, #e0e0e0);
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(--border-color, #2a2a4a);
overflow: hidden;
min-height: 0;
}
.dashboard-treeview {
background: var(--bg-secondary, #16213e);
overflow-y: auto;
padding: 12px;
position: relative;
}
.dashboard-info-panel {
background: var(--bg-secondary, #16213e);
overflow-y: auto;
padding: 16px;
}
.treeview-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.treeview-header h3 {
font-size: 0.875rem;
font-weight: 600;
margin: 0;
color: var(--text-primary, #e0e0e0);
}
.treeview-add-folder-btn {
background: var(--accent-primary, #4a9eff);
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(--bg-input, #0f0f23);
border-radius: 6px;
border: 1px solid var(--border-color, #2a2a4a);
}
.folder-create-form input {
width: 100%;
padding: 4px 8px;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 4px;
background: var(--bg-primary, #1a1a2e);
color: var(--text-primary, #e0e0e0);
font-size: 0.8125rem;
outline: none;
box-sizing: border-box;
}
.folder-create-form input:focus { border-color: var(--accent-primary, #4a9eff); }
.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: 0.75rem;
font-weight: 600;
}
.folder-create-actions button:first-child {
background: var(--accent-primary, #4a9eff);
color: white;
}
.folder-create-actions button:last-child {
background: transparent;
color: var(--text-secondary, #888);
border: 1px solid var(--border-color, #2a2a4a);
}
.folder-rename-form {
margin-bottom: 8px;
padding: 8px;
background: var(--bg-input, #0f0f23);
border-radius: 6px;
border: 1px solid var(--border-color, #2a2a4a);
}
.folder-rename-form input {
width: 100%;
padding: 4px 8px;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 4px;
background: var(--bg-primary, #1a1a2e);
color: var(--text-primary, #e0e0e0);
font-size: 0.8125rem;
outline: none;
box-sizing: border-box;
}
.folder-rename-form input:focus { border-color: var(--accent-primary, #4a9eff); }
.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(--text-secondary, #888);
border-radius: 3px;
transition: color 0.15s, background 0.15s;
}
.folder-action-btn:hover { color: var(--accent-primary, #4a9eff); background: rgba(74, 158, 255, 0.1); }
.folder-action-btn.delete:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
.tree-drop-target {
background: rgba(74, 158, 255, 0.15) !important;
outline: 2px dashed var(--accent-primary, #4a9eff);
}
.treeview-drop-overlay {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
pointer-events: none;
}
.treeview-drop-zone {
pointer-events: auto;
}
.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(--bg-secondary, #16213e);
border: 1px solid var(--border-color, #2a2a4a);
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(--text-primary, #e0e0e0);
font-size: 0.8125rem;
transition: background 0.15s;
}
.context-menu-item:hover { background: rgba(74, 158, 255, 0.1); }
.context-menu-item.danger:hover { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.dashboard-project-card.selected {
border-color: var(--accent-primary, #4a9eff);
box-shadow: 0 0 0 1px var(--accent-primary, #4a9eff);
}
.dashboard-open-btn {
padding: 4px 10px;
border: 1px solid var(--accent-primary, #4a9eff);
border-radius: 4px;
background: var(--accent-primary, #4a9eff);
color: white;
cursor: pointer;
font-size: 12px;
font-weight: 600;
}
.dashboard-open-btn:hover { opacity: 0.85; }
.info-panel-title {
font-size: 1.125rem;
font-weight: 700;
margin: 0 0 8px 0;
color: var(--text-primary, #e0e0e0);
}
.info-panel-description {
font-size: 0.8125rem;
color: var(--text-secondary, #888);
margin: 0 0 16px 0;
line-height: 1.5;
}
.info-panel-section {
margin-bottom: 20px;
}
.info-panel-section h4 {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-secondary, #888);
margin: 0 0 8px 0;
padding-bottom: 4px;
border-bottom: 1px solid var(--border-color, #2a2a4a);
}
.info-panel-meta {
margin: 0;
display: grid;
grid-template-columns: auto 1fr;
gap: 4px 12px;
}
.info-panel-meta dt {
font-size: 0.75rem;
color: var(--text-secondary, #888);
font-weight: 500;
}
.info-panel-meta dd {
font-size: 0.75rem;
color: var(--text-primary, #e0e0e0);
margin: 0;
}
.info-panel-loading, .info-panel-empty {
font-size: 0.75rem;
color: var(--text-secondary, #888);
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(--border-color, #2a2a4a);
border-radius: 4px;
font-size: 0.75rem;
}
.info-panel-share-email {
color: var(--text-primary, #e0e0e0);
}
.info-panel-share-perm {
font-size: 0.6875rem;
text-transform: uppercase;
font-weight: 600;
padding: 1px 6px;
border-radius: 3px;
background: var(--border-color, #2a2a4a);
color: var(--text-secondary, #888);
}
.info-panel-open-btn {
width: 100%;
padding: 10px;
border: none;
border-radius: 6px;
background: var(--accent-primary, #4a9eff);
color: white;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
margin-top: 8px;
}
.info-panel-open-btn:hover { opacity: 0.85; }
.info-panel-placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
min-height: 200px;
}
.info-panel-placeholder p {
color: var(--text-secondary, #888);
font-size: 0.875rem;
text-align: center;
}
@media (max-width: 1024px) {
.dashboard-3col {
grid-template-columns: 1fr;
}
.dashboard-treeview, .dashboard-info-panel {
display: none;
}
}
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
border-bottom: 1px solid var(--border-color, #2a2a4a);
background: var(--bg-secondary, #16213e);
}
.dashboard-brand {
display: flex;
align-items: center;
gap: 1rem;
}
.dashboard-brand h1 {
font-size: 1.25rem;
font-weight: 700;
margin: 0;
color: var(--accent-primary, #4a9eff);
}
.dashboard-user {
font-size: 0.8125rem;
color: var(--text-secondary, #888);
}
.dashboard-logout {
padding: 0.375rem 0.875rem;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 6px;
background: transparent;
color: var(--text-primary, #e0e0e0);
font-size: 0.8125rem;
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(--bg-secondary, #16213e);
}
.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(--accent-primary, #4a9eff);
color: #fff;
font-size: 0.8125rem;
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(--border-color, #2a2a4a);
border-radius: 6px;
background: var(--bg-input, #0f0f23);
color: var(--text-primary, #e0e0e0);
font-size: 0.8125rem;
outline: none;
}
.dashboard-create-form input:focus {
border-color: var(--accent-primary, #4a9eff);
}
.dashboard-create-form button {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.8125rem;
font-weight: 500;
}
.dashboard-create-form button:first-of-type {
background: var(--accent-primary, #4a9eff);
color: #fff;
}
.dashboard-create-form button:last-of-type {
background: transparent;
color: var(--text-secondary, #888);
border: 1px solid var(--border-color, #2a2a4a);
}
.dashboard-loading,
.dashboard-empty {
text-align: center;
color: var(--text-secondary, #888);
padding: 2rem;
}
.dashboard-project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
}
.dashboard-project-card {
background: var(--bg-secondary, #16213e);
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 8px;
padding: 1.25rem;
cursor: pointer;
transition: border-color 0.15s, transform 0.1s;
}
.dashboard-project-card:hover {
border-color: var(--accent-primary, #4a9eff);
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: 0.8125rem;
color: var(--text-secondary, #888);
margin: 0 0 0.75rem 0;
}
.dashboard-project-meta {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.75rem;
color: var(--text-secondary, #888);
}
.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: 0.75rem;
cursor: pointer;
}
.dashboard-delete-btn:hover {
background: rgba(239, 68, 68, 0.1);
}