/* =========================================================
   WaterFall Labs - Auth Pages
   File: assets/css/auth.css
   Shared by login.php and register.php
   ========================================================= */

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: white;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

/* Background */
.background img {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.background::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 5, 9, 0.68) 0%, rgba(6, 10, 16, 0.74) 100%),
        radial-gradient(circle at top right, rgba(159, 207, 255, 0.08), transparent 32%);
}

/* Layout */
.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px 54px;
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: stretch;
}

/* Left branding/info panel */
.auth-info {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(5, 10, 16, 0.92) 0%, rgba(9, 15, 24, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.auth-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(159, 207, 255, 0.04), transparent);
    pointer-events: none;
}

.auth-logo {
    display: block;
    width: min(300px, 80%);
    height: auto;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 12px rgba(159, 207, 255, 0.16));
}

.auth-info h1 {
    margin: 0 0 14px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.2;
    color: rgba(185, 223, 255, 0.98);
    text-shadow: 1px 1px 2px black;
}

.auth-info p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.7;
    text-align: center;
}

.auth-benefits {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-benefits li {
    padding: 12px 14px 12px 40px;
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.auth-benefits li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 12px;
    color: rgba(159, 207, 255, 0.98);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Form card */
.auth-card {
    padding: 32px 28px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.auth-card h2 {
    margin: 0 0 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.35rem, 1.8vw, 1.9rem);
    line-height: 1.25;
    color: #ffffff;
    text-align: center;
}

.auth-subtitle {
    margin: 0 0 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: rgba(185, 223, 255, 0.98);
    letter-spacing: 0.01em;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #142736;
    font-size: 1rem;
    font-family: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.05);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(120, 185, 245, 0.95);
    box-shadow:
        0 0 0 4px rgba(120, 185, 245, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    padding: 12px 18px;
    border: 2px solid #1e8449;
    border-radius: 12px;
    background: linear-gradient(180deg, #39d882 0%, #27ae60 100%);
    color: #04110a;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 8px 16px rgba(46, 204, 113, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transition:
        transform 0.16s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 12px 20px rgba(46, 204, 113, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.auth-submit:active {
    transform: translateY(2px);
}

/* Messages */
.auth-message,
.auth-error,
.auth-success {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.55;
    font-size: 0.96rem;
}

.auth-error {
    background: rgba(191, 17, 17, 0.18);
    border: 1px solid rgba(255, 120, 120, 0.28);
    color: #ffd1d1;
}

.auth-success {
    background: rgba(39, 174, 96, 0.18);
    border: 1px solid rgba(120, 235, 170, 0.28);
    color: #d8ffea;
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.auth-links a {
    color: rgba(159, 207, 255, 0.98);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Small helper text */
.auth-helper {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .auth-info,
    .auth-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .auth-page {
        padding: 24px 14px 40px;
    }
}

@media (max-width: 600px) {
    .auth-page {
        padding: 16px 10px 28px;
    }

    .auth-info,
    .auth-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .auth-logo {
        width: min(220px, 75%);
        margin-bottom: 12px;
    }

    .auth-info h1 {
        font-size: 1.25rem;
    }

    .auth-info p,
    .auth-subtitle {
        font-size: 0.92rem;
    }

    .auth-benefits li {
        font-size: 0.9rem;
    }

    .auth-card h2 {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.82rem;
    }

    .auth-form input {
        min-height: 46px;
        font-size: 0.95rem;
    }

    .auth-submit {
        min-height: 48px;
        font-size: 0.92rem;
    }

    .auth-links {
        font-size: 0.92rem;
    }
}