.auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.auth-panel {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 32px;
}

.auth-panel h1 {
    font-size: 28px;
    color: #102033;
    margin-bottom: 8px;
}

.auth-panel p {
    color: #667085;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

.auth-field input:focus {
    border-color: #00a2ff;
    box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.14);
}

.auth-field input[type="file"] {
    padding: 10px 12px;
    background: #f8fafc;
}

.auth-submit {
    border: 0;
    border-radius: 6px;
    background: #006cdb;
    color: white;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.auth-submit:hover {
    background: #005bb8;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: #667085;
}

.auth-switch a {
    color: #006cdb;
    font-weight: 700;
    text-decoration: none;
}

.auth-alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.auth-alert.success {
    background: #dcfce7;
    color: #166534;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
    color: #64748b;
    font-size: 0.95rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6edf5;
}

.social-login {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 14px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.social-button:hover {
    background: #f8fbff;
    border-color: #9bb4d9;
}

.social-google {
    background: #ffffff;
    color: #0f172a;
}

.social-facebook {
    background: #1877f2;
    color: #ffffff;
    border-color: #166fe5;
}

.social-facebook:hover {
    background: #145dbf;
}

.account-card {
    background: white;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.account-meta {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.account-meta div {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 12px;
}

.account-shell {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 28px;
    overflow: hidden;
}

.account-page-wrap {
    padding: 48px 20px 56px;
}

.account-dashboard {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.account-sidebar {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(8, 15, 31, 0.18), rgba(8, 15, 31, 0.72)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    min-height: 680px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 17, 35, 0.25), rgba(10, 17, 35, 0.68));
}

.account-sidebar > * {
    position: relative;
    z-index: 1;
}

.account-brand-block {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.account-brand-logo {
    width: 82px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.account-brand-block h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.account-brand-block p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.account-sidebar-profile {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.account-sidebar-profile strong,
.account-sidebar-profile span {
    display: block;
}

.account-sidebar-profile strong {
    margin-top: 12px;
    font-size: 18px;
}

.account-sidebar-profile span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.account-avatar-large {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.account-sidebar-links {
    display: grid;
    gap: 10px;
}

.account-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.account-sidebar-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.account-sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.account-sidebar-link.danger {
    background: rgba(239, 68, 68, 0.92);
    border-color: rgba(239, 68, 68, 0.9);
}

.account-sidebar-link.danger:hover {
    background: rgba(220, 38, 38, 0.95);
}

.account-tech-panel {
    margin-top: auto;
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(6, 10, 20, 0.06), rgba(6, 10, 20, 0.58)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
}

.account-tech-panel::before,
.account-tech-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.account-tech-panel::before {
    background:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.25;
    mix-blend-mode: screen;
}

.account-tech-panel::after {
    background: radial-gradient(circle at 22% 26%, rgba(90, 211, 255, 0.42), transparent 28%),
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
        radial-gradient(circle at 70% 82%, rgba(79, 70, 229, 0.28), transparent 24%);
}

.account-tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
}

.account-tech-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #ffffff;
}

.account-tech-copy span {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.account-tech-copy strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
    max-width: 220px;
}

.account-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.account-tech-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.account-hero-banner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6edf5;
    min-width: 0;
}

.account-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-card {
    overflow: hidden;
}

.account-profile-media {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.account-profile-actions h3,
.account-section-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0f172a;
}

.account-profile-actions p {
    margin: 0 0 14px;
    color: #64748b;
}

.account-link-button,
.account-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 0;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.account-link-button {
    background: #ffffff;
    color: #d97706;
    border: 1px solid #f1c38b;
}

.account-edit-card {
    margin-top: 18px;
}

.account-section-head-inline {
    margin-bottom: 14px;
}

.account-section-head-inline p {
    margin: 0;
    color: #64748b;
}

.account-info-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-info-form .auth-field {
    min-width: 0;
}

.account-info-form .auth-field input {
    width: 100%;
}

.account-info-form .account-submit {
    margin-top: 2px;
    width: fit-content;
}

.account-info-list,
.account-footer-cards {
    display: grid;
    gap: 12px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.account-info-row span {
    color: #64748b;
}

.account-info-row strong {
    color: #0f172a;
    text-align: right;
}

.account-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-password-card {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.account-footer-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-footer-card {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
    color: #475569;
    font-weight: 700;
}

.account-hero-dashboard {
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e6edf5;
}

.account-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-kicker {
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.account-title {
    font-size: 32px;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 10px;
}

.account-subtitle {
    color: #64748b;
    max-width: 620px;
}

.account-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
    min-width: 280px;
}

.account-stat-card {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.account-stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.account-stat-card strong {
    font-size: 18px;
    color: #0f172a;
}

.account-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.account-meta-item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.account-meta-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.account-meta-item strong {
    color: #0f172a;
    font-size: 15px;
}

.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.account-subcard {
    background: #f8fbff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    padding: 20px;
}

.account-subcard h3 {
    font-size: 18px;
    color: #102033;
    margin-bottom: 6px;
}

.account-subcard p {
    color: #667085;
    margin-bottom: 14px;
    font-size: 14px;
}

.account-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.account-quick-card {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    padding: 18px 20px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.account-quick-card span {
    display: block;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
    margin-bottom: 10px;
}

.account-quick-card strong {
    font-size: 16px;
}

@media (max-width: 900px) {
    .account-actions-grid,
    .account-quick-links,
    .account-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-hero-dashboard {
        flex-direction: column;
    }

    .account-hero-stats {
        width: 100%;
        min-width: 0;
    }

    .account-dashboard,
    .account-content-grid,
    .account-footer-cards,
    .account-password-grid,
    .account-info-form-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        min-height: auto;
    }

    .account-hero-banner,
    .account-profile-media {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .account-shell {
        padding: 18px;
        border-radius: 18px;
    }

    .account-hero-left {
        flex-direction: column;
        text-align: center;
    }

    .account-title {
        font-size: 26px;
    }

    .account-actions-grid,
    .account-quick-links,
    .account-meta-grid,
    .account-hero-stats,
    .account-content-grid,
    .account-footer-cards,
    .account-password-grid,
    .account-info-form-grid {
        grid-template-columns: 1fr;
    }

    .account-page-wrap {
        padding: 28px 16px 44px;
    }
}
