/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0f172a;
    --navy-mid: #1a2744;
    --blue: #3b5bdb;
    --blue-light: #4c6ef5;
    --gray-50: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-800: #1e293b;
    --white: #ffffff;
    --radius: 14px;
}

body.auth-page {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(15, 23, 42, 0.75),
            rgba(15, 23, 42, 0.85)
        ),
        url("https://i.pinimg.com/1200x/b1/5b/52/b15b52ed644cb8bf9933d79ba785a2d3.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    font-family: 'Poppins', sans-serif;
}

/* CARD */
.auth-card {
    width: 100%;
    max-width: 920px;

    background: white;

    border-radius: 20px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.18);
}

/* LEFT SIDE */
.auth-card-left {
    background: linear-gradient(160deg, #0f172a, #1a2744);

    color: white;

    padding: 60px 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-left img {
    width: 48px;
    margin-bottom: 24px;
}

.auth-card-left h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 14px;
    font-weight: 600;
}

.auth-card-left span {
    color: #60a5fa;
}

.auth-card-left p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* RIGHT SIDE */
.auth-card-right {
    padding: 50px;
}

.auth-card-right h3 {
    font-size: 1.7rem;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.auth-subtext {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 0.92rem;
}

/* LABELS */
label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;

    font-size: 0.88rem;
    font-weight: 500;

    color: var(--gray-800);
}

/* INPUTS */
input {
    width: 100%;

    padding: 13px 14px;

    border-radius: 12px;

    border: 1px solid var(--gray-200);

    font-size: 0.95rem;

    outline: none;

    transition: all 0.25s ease;

    background: white;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.12);
}

/* PASSWORD WRAPPER */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

/* TOGGLE ICON */
.toggle-password {
    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    cursor: pointer;

    color: #64748b;

    font-size: 0.95rem;

    transition: 0.2s ease;
}

.toggle-password:hover {
    color: #3b5bdb;
}

/* BUTTONS */
button {
    margin-top: 24px;

    padding: 13px 18px;

    border: none;

    border-radius: 999px;

    cursor: pointer;

    font-size: 0.95rem;
    font-weight: 500;

    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b5bdb, #4c6ef5);

    color: white;

    box-shadow:
        0 8px 18px rgba(76, 110, 245, 0.25);
}

/* STEPS */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* FLASH MESSAGES */
.flash-container {
    margin-bottom: 18px;
}

.flash-message {
    padding: 12px 14px;

    border-radius: 10px;

    margin-bottom: 10px;

    font-size: 0.88rem;

    font-weight: 500;
}

.flash-message.success {
    background: #dcfce7;
    color: #166534;
}

.flash-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* MOBILE */
@media (max-width: 768px) {

    body.auth-page {
        padding: 16px;
    }

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

    .auth-card-left {
        text-align: center;
        padding: 40px 30px;
    }

    .auth-card-right {
        padding: 35px 25px;
    }

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

    .auth-card-right h3 {
        font-size: 1.4rem;
    }

    button {
        width: 100%;
    }
}
