/* ===== AUTH PAGES (login / register) ===== */

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('../img/landing3.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

/* ===== Card ===== */

.auth-card {
    position: relative;
    z-index: 1;
    padding: 45px;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.8s ease;
}

.auth-card--login {
    width: 420px;
}

.auth-card--login .field input,
.auth-card--login .field select {
    height: 50px;
}

.auth-card--login .field {
    margin-bottom: 40px;
}

.auth-card--register {
    width: 480px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card h2 {
    color: #fff;
    font-weight: 500;
    text-align: center;
    margin-bottom: 25px;
}

.auth-card h2.auth-title--login {
    font-size: 34px;
}

.auth-card h2.auth-title--register {
    font-size: 34px;
    margin-bottom: 35px;
}

/* ===== Fields ===== */

.field {
    margin-bottom: 25px;
}

.field label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.field input,
.field select {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-size: 14px;
    padding: 0 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.field input:focus,
.field select:focus {
    border-bottom-color: #fff;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.12);
}

.field select option {
    background: #1a1a2e;
    color: #fff;
}

/* ===== Password toggle ===== */

.input-wrapper {
    position: relative;
    padding-right: 35px;
}

.input-wrapper .toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    transition: color 0.3s;
}

.input-wrapper .toggle-btn:hover {
    color: #fff;
}

/* ===== Row layout (register) ===== */

.row-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.row-inputs .field {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
}

/* ===== Button ===== */

.btn-auth {
    display: block;
    margin: 10px auto 0;
    width: auto;
    min-width: 200px;
    padding: 12px 30px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.btn-auth:hover {
    background: #e0e0e0;
}



/* ===== Bottom text ===== */

.bottom-text {
    text-align: center;
    margin-top: 40px;
    color: #fff;
    font-size: 14px;
}

.bottom-text a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.bottom-text a:hover {
    text-decoration: underline;
}

/* ===== Alert ===== */

.alert-custom {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* ===== Checkbox (register) ===== */

.checkbox-field {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.checkbox-field a {
    color: #fff;
    text-decoration: underline;
}

/* ===== Responsive ===== */

@media (max-width: 576px) {
    .auth-card {
        width: 95% !important;
        padding: 30px;
    }

    .auth-card h2 {
        font-size: 36px !important;
    }

    .btn-auth--login {
        height: 50px;
        font-size: 20px;
    }

    .btn-auth--register {
        height: 48px;
        font-size: 18px;
    }

    .row-inputs {
        flex-direction: column;
        gap: 20px;
    }

    .row-inputs .field {
        min-width: auto;
    }
}