317 lines
5.2 KiB
CSS
317 lines
5.2 KiB
CSS
/* ── Backdrop ── */
|
|
.account-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* ── Panel card ── */
|
|
.account-panel {
|
|
background: #1e2130;
|
|
border: 1px solid #2e3348;
|
|
border-radius: 10px;
|
|
padding: 1.5rem;
|
|
width: 440px;
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
/* ── Header ── */
|
|
.account-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.account-header h2 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.account-close {
|
|
background: none;
|
|
border: none;
|
|
color: #8892a4;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 0.25rem;
|
|
}
|
|
.account-close:hover {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
/* ── Section ── */
|
|
.account-section {
|
|
border-top: 1px solid #2e3348;
|
|
padding-top: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.account-section h3 {
|
|
margin: 0;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: #8892a4;
|
|
}
|
|
|
|
.section-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.section-header-row h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
/* ── Profile form ── */
|
|
.profile-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.profile-name-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.account-field-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.3rem;
|
|
font-size: 0.75rem;
|
|
color: #8892a4;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.account-field-label input {
|
|
background: #141622;
|
|
border: 1px solid #2e3348;
|
|
border-radius: 6px;
|
|
color: #e2e8f0;
|
|
font-size: 0.85rem;
|
|
padding: 0.35rem 0.6rem;
|
|
outline: none;
|
|
transition: border-color 0.12s;
|
|
}
|
|
|
|
.account-field-label input:focus {
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
/* ── Read-only fields ── */
|
|
.readonly-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.account-label {
|
|
font-size: 0.8rem;
|
|
color: #8892a4;
|
|
min-width: 70px;
|
|
}
|
|
|
|
.account-value {
|
|
font-size: 0.9rem;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
/* ── Profile save / cancel row ── */
|
|
.profile-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.btn-save {
|
|
background: #6366f1;
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
padding: 0.35rem 0.9rem;
|
|
transition: background 0.12s;
|
|
}
|
|
.btn-save:hover {
|
|
background: #4f46e5;
|
|
}
|
|
.btn-save:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.btn-text {
|
|
background: none;
|
|
border: none;
|
|
color: #6b7280;
|
|
cursor: pointer;
|
|
font-size: 0.82rem;
|
|
padding: 0.25rem 0.4rem;
|
|
transition: color 0.12s;
|
|
}
|
|
.btn-text:hover {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
/* ── Password form ── */
|
|
.password-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
/* ── Messages ── */
|
|
.account-error {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
color: #f87171;
|
|
background: rgba(239, 68, 68, 0.08);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
border-radius: 5px;
|
|
padding: 0.35rem 0.6rem;
|
|
}
|
|
|
|
.account-success {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
color: #34d399;
|
|
background: rgba(16, 185, 129, 0.08);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
border-radius: 5px;
|
|
padding: 0.35rem 0.6rem;
|
|
}
|
|
|
|
/* ── Connection row ── */
|
|
.account-connection {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
background: #141622;
|
|
border: 1px solid #2e3348;
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.connection-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.discord-icon {
|
|
color: #5865f2;
|
|
}
|
|
|
|
.connection-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
}
|
|
|
|
.connection-name {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.connection-linked {
|
|
font-size: 0.75rem;
|
|
color: #4ade80;
|
|
}
|
|
|
|
.connection-unlinked {
|
|
font-size: 0.75rem;
|
|
color: #8892a4;
|
|
}
|
|
|
|
.connection-hint {
|
|
margin: 0;
|
|
font-size: 0.75rem;
|
|
color: #f59e0b;
|
|
padding: 0 0.25rem;
|
|
}
|
|
|
|
.btn-connect-discord {
|
|
background: #5865f2;
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
padding: 0.35rem 0.75rem;
|
|
transition: background 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.btn-connect-discord:hover {
|
|
background: #4752c4;
|
|
}
|
|
|
|
.btn-disconnect {
|
|
background: transparent;
|
|
border: 1px solid #4a5568;
|
|
border-radius: 6px;
|
|
color: #8892a4;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
padding: 0.35rem 0.75rem;
|
|
transition:
|
|
color 0.15s,
|
|
border-color 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.btn-disconnect:hover:not(:disabled) {
|
|
border-color: #ef4444;
|
|
color: #f87171;
|
|
}
|
|
.btn-disconnect:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ── Footer ── */
|
|
.account-footer {
|
|
border-top: 1px solid #2e3348;
|
|
padding-top: 1rem;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.btn-logout {
|
|
background: transparent;
|
|
border: 1px solid #4a5568;
|
|
border-radius: 6px;
|
|
color: #8892a4;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
padding: 0.4rem 1rem;
|
|
transition:
|
|
color 0.15s,
|
|
border-color 0.15s;
|
|
}
|
|
.btn-logout:hover {
|
|
border-color: #ef4444;
|
|
color: #ef4444;
|
|
}
|