/* =====================================
   AUTH PAGES SHARED STYLES
   Login | Register | Forgot Password
===================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f7f7fb;
}

/* ===============================
   AUTH PAGE LAYOUT
================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.auth-box {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

/* ===============================
   HEADINGS & TEXT
================================ */

.auth-box h2 {
    text-align: center;
    color: #6c3483;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-box p {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 28px;
}

/* ===============================
   FORM ELEMENTS
================================ */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    outline: none;
    border-color: #9b59b6;
    background: #faf7fd;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.12);
}

/* ===============================
   BUTTON
================================ */

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #9b59b6, #ec5598);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.35);
}

.btn:active {
    transform: translateY(0);
}

/* ===============================
   LINKS
================================ */

.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #9b59b6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #7d3c98;
}

/* ===============================
   ALERT MESSAGES
================================ */

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
}

.alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #c3e6cb;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 480px) {

    .auth-page {
        padding: 80px 10px 20px;
        align-items: flex-start;
    }

    .auth-box {
        padding: 28px 20px;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    }

    .auth-box h2 {
        font-size: 24px;
    }

    .auth-box p {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .btn {
        padding: 15px;
        font-size: 16px;
    }
}


/* =====================================
   MOBILE VERTICAL FULL-WIDTH FIX
===================================== */

@media (max-width: 768px) {

    body {
        background: #ffffff;
    }

    .auth-page {
        min-height: 100vh;
        padding: 0;
        align-items: flex-start;
        justify-content: flex-start;
        background: #ffffff;
    }

    .auth-box {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 32px 20px;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .auth-box h2 {
        font-size: 26px;
        margin-top: 20px;
    }

    .auth-box p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px;
    }

    .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .auth-links {
        margin-top: 25px;
        font-size: 14px;
    }
}
/* ===============================
   AUTH PAGE BASE
================================ */

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f7f7fb;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.auth-box {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

/* ===============================
   TEXT
================================ */

.auth-box h2 {
    text-align: center;
    color: #6c3483;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-box p {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 28px;
}

/* ===============================
   FORM
================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    letter-spacing: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #9b59b6;
    background: #faf7fd;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.12);
}

/* ===============================
   BUTTON
================================ */

.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #9b59b6, #ec5598);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.35);
}

/* ===============================
   ALERTS
================================ */

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
}

.alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ===============================
   LINKS
================================ */

.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #9b59b6;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ===============================
   MOBILE VERTICAL LAYOUT
================================ */

@media (max-width: 768px) {

    .auth-page {
        padding: 0;
        align-items: flex-start;
        background: #fff;
    }

    .auth-box {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 32px 20px;
        border-radius: 0;
        box-shadow: none;
    }
}
/* ===============================
   SHOW / HIDE PASSWORD
================================ */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px; /* Space for eye icon */
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #9b59b6;
    user-select: none;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #7d3c98;
}

/* Mobile touch improvement */
@media (max-width: 480px) {
    .toggle-password {
        font-size: 20px;
    }
}

