body {
    background: #f7f7fb;
}

.auth-shell {
    min-height: calc(100vh - 64px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent 35%),
        linear-gradient(180deg, #f8f8fc 0%, #ffffff 100%);
    padding: 72px 16px 56px;
}

.auth-grid {
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    align-items: center;
}

.auth-grid-reverse {
    direction: rtl;
}

.auth-grid-reverse > * {
    direction: ltr;
}

.auth-brand-panel,
.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.auth-brand-panel {
    padding: 32px;
}

.auth-card {
    padding: 28px;
}

.auth-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 9999px;
    filter: blur(90px);
    pointer-events: none;
}

.auth-glow-left {
    top: -120px;
    left: -90px;
    background: rgba(124, 58, 237, 0.16);
}

.auth-glow-right {
    bottom: -120px;
    right: -100px;
    background: rgba(99, 102, 241, 0.14);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: #f3e8ff;
    color: #6b21a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

.auth-brand-logo {
    width: 74px;
    height: 74px;
    margin-top: 28px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 16px 30px rgba(124, 58, 237, 0.16);
}

.auth-brand-title {
    font-size: clamp(1.25rem, 5vw, 1.8rem);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    max-width: 100%;
    word-wrap: break-word;
}

.auth-brand-text {
    margin-top: 16px;
    max-width: 34rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.auth-feature-list {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.04), rgba(255, 255, 255, 0.72));
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-feature-item i {
    color: #7c3aed;
    font-size: 18px;
}

.auth-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-card-kicker {
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-title {
    margin-top: 4px;
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.auth-card-home {
    white-space: nowrap;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-card-home:hover,
.auth-link:hover,
.auth-switch-text a:hover {
    color: #6d28d9;
}

.auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-toggle-group {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.auth-toggle-button {
    flex: 1;
    padding: 11px 14px;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.auth-toggle-button.is-active {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.18);
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: #7c3aed;
}

.auth-error-text {
    margin-top: 8px;
    color: #dc2626;
    font-size: 0.75rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    accent-color: #7c3aed;
}

.auth-link {
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-primary-btn,
.auth-secondary-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
}

.auth-primary-btn:hover,
.auth-secondary-btn:hover {
    transform: translateY(-1px);
}

.auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.auth-switch-text {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.auth-switch-text a {
    color: #7c3aed;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .auth-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        order: 2;
    }

    .auth-card {
        order: 1;
    }

    .auth-shell {
        padding: 90px 20px 48px;
    }

    .auth-brand-panel,
    .auth-card {
        padding: 28px;
    }

    .auth-card-title {
        font-size: 1.75rem;
    }

    .auth-card-header {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        order: 2;
        display: none;
    }

    .auth-card {
        order: 1;
    }

    .auth-shell {
        padding: 80px 14px 40px;
        min-height: auto;
    }

    .auth-glow {
        width: 200px;
        height: 200px;
        filter: blur(60px);
    }

    .auth-glow-left {
        top: -80px;
        left: -60px;
    }

    .auth-glow-right {
        bottom: -80px;
        right: -60px;
    }

    .auth-brand-panel,
    .auth-card {
        padding: 20px;
        border-radius: 20px;
    }

    .auth-card-title {
        font-size: 1.5rem;
    }

    .auth-card-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .auth-card-home {
        display: none;
    }

    .auth-remember {
        align-items: flex-start;
    }

    .auth-label {
        font-size: 0.8125rem;
    }

    .auth-input {
        min-height: 45px;
        font-size: 0.9rem;
    }

    .auth-primary-btn,
    .auth-secondary-btn {
        min-height: 45px;
        font-size: 0.9375rem;
    }

    .auth-switch-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 75px 12px 32px;
    }

    .auth-brand-panel,
    .auth-card {
        padding: 18px;
        border-radius: 18px;
    }

    .auth-card-title {
        font-size: 1.375rem;
    }

    .auth-card-kicker {
        font-size: 11px;
    }

    .auth-input {
        min-height: 42px;
        font-size: 0.875rem;
    }

    .auth-input-icon {
        left: 12px;
        font-size: 16px;
    }

    .auth-password-toggle {
        right: 12px;
    }

    .auth-primary-btn,
    .auth-secondary-btn {
        min-height: 42px;
        font-size: 0.875rem;
    }

    .auth-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .auth-feature-item {
        padding: 12px 14px;
        font-size: 0.8125rem;
    }

    .auth-feature-item i {
        font-size: 16px;
    }

    .auth-brand-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        padding: 70px 10px 28px;
        min-height: calc(100vh - 60px);
    }

    .auth-grid {
        gap: 16px;
    }

    .auth-brand-panel,
    .auth-card {
        padding: 16px;
        border-radius: 16px;
    }

    .auth-card-title {
        font-size: 1.25rem;
    }

    .auth-label {
        font-size: 0.75rem;
    }

    .auth-input {
        min-height: 40px;
        font-size: 0.8125rem;
    }

    .auth-primary-btn,
    .auth-secondary-btn {
        min-height: 40px;
        font-size: 0.8125rem;
    }

    .auth-error-text {
        font-size: 0.7rem;
    }

    .auth-feature-list {
        margin-top: 16px;
        gap: 8px;
    }

    .auth-badge {
        font-size: 10px;
    }
}
