.auth-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    gap: 30px;
    align-items: center;
    width: min(1180px, calc(100% - 36px));
    margin: auto;
    padding: 38px 0;
    min-width: 0;
}

.auth-layout > *,
.auth-brand > div:last-child {
    min-width: 0;
}

.auth-hero {
    padding: 38px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 35px rgba(79, 140, 255, .35);
}

    .auth-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }

.auth-brand h1 {
    margin: 0;
    font-size: 1.45rem;
    overflow-wrap: anywhere;
}

.auth-brand p {
    margin: 3px 0 0;
    color: var(--muted);
}

.auth-copy {
    margin-top: 55px;
}

    .auth-copy h2 {
        font-size: clamp(2.2rem, 5vw, 4.2rem);
        line-height: 1.03;
        margin: 14px 0 18px;
    }

    .auth-copy p {
        color: #cbd5e1;
        line-height: 1.75;
        max-width: 700px;
    }

.auth-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 140, 255, .12);
    border: 1px solid rgba(147, 197, 253, .2);
    color: #dbeafe;
}

.auth-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(13, 19, 37, .9);
    box-shadow: var(--shadow);
    padding: clamp(24px, 4vw, 42px);
    backdrop-filter: blur(20px);
    min-width: 0;
}

    .auth-card h2 {
        margin: 5px 0 8px;
        font-size: 2rem;
    }

.auth-card-header p {
    color: var(--muted);
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

    .auth-field label {
        font-weight: 600;
        font-size: .88rem;
    }

.auth-input {
    position: relative;
}

    .auth-input > i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #9fb0ca;
    }

    .auth-input input {
        padding-left: 40px;
        padding-right: 42px;
        min-height: 48px;
    }

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    color: #cbd5e1;
    background: transparent;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .84rem;
    color: var(--muted);
}

.auth-link {
    color: #93c5fd;
}

.auth-note {
    margin-top: 18px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.password-rules {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.6;
}

@media (max-width: 880px) {
    .auth-layout {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 28px));
    }

    .auth-hero {
        padding: 20px 8px 0;
    }

    .auth-copy {
        margin-top: 28px;
    }

        .auth-copy h2 {
            font-size: 2.5rem;
        }
}

@media (max-width: 560px) {
    .auth-layout {
        width: min(100% - 20px, 620px);
        gap: 18px;
        padding: 18px 0 28px;
    }

    .auth-hero {
        padding: 10px 8px 0;
    }

    .auth-copy {
        margin-top: 22px;
    }

    .auth-copy h2 {
        font-size: clamp(2rem, 12vw, 2.7rem);
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .auth-card h2 {
        font-size: 1.7rem;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .auth-brand {
        align-items: flex-start;
    }

    .auth-logo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        flex: 0 0 auto;
    }

    .auth-brand h1 {
        font-size: 1.1rem;
    }

    .auth-copy p {
        line-height: 1.6;
    }
}
