﻿.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #f7fbff 0%, #edf7f2 54%, #fff8f1 100%);
    background-size: 36px 36px, 36px 36px, auto;
}

.auth-layout {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 28px;
    align-items: stretch;
}

.auth-brand-panel,
.auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    border-radius: 24px;
}

.auth-brand-panel {
    min-height: 560px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand-panel::before,
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #111827, #10b981, #2563eb);
}

.auth-kicker {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.auth-brand-title {
    margin: 16px 0 12px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: 0;
    color: #111827;
}

.auth-brand-copy {
    max-width: 520px;
    margin: 0;
    color: #5f6f82;
    font-size: 16px;
    line-height: 1.8;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.auth-feature {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 32, 51, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.auth-feature strong {
    display: block;
    color: #111827;
    margin-bottom: 6px;
}

.auth-feature span {
    color: #5f6f82;
    font-size: 13px;
    line-height: 1.5;
}

.auth-card {
    padding: 34px;
    align-self: center;
}

.auth-title {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: #5f6f82;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 800;
    font-size: 14px;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(23, 32, 51, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 15px;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.auth-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-row input {
    flex: 1;
}

.auth-button,
.auth-secondary-button {
    min-height: 48px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid rgba(23, 32, 51, 0.14);
}

.auth-button {
    width: 100%;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.auth-secondary-button {
    white-space: nowrap;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.auth-button:disabled,
.auth-secondary-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #5f6f82;
    font-size: 14px;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 800;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #7a8797;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(23, 32, 51, 0.1);
}

.auth-message {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.auth-message.show {
    display: block;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #047857;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.auth-message.info {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
}

.auth-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.auth-step {
    padding: 10px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.05);
    color: #5f6f82;
    font-size: 13px;
    text-align: center;
    font-weight: 800;
}

.auth-step.active,
.auth-step.completed {
    background: #111827;
    color: #fff;
}

.auth-step-content {
    display: none;
}

.auth-step-content.active {
    display: grid;
    gap: 16px;
}

.auth-strength {
    margin-top: 8px;
    font-size: 12px;
    color: #5f6f82;
}

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

    .auth-brand-panel {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 18px 12px;
    }

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

    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-row {
        flex-direction: column;
        align-items: stretch;
    }
}
