/* ===============================
   ROOT VARIABLES
================================= */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --accent: #14b8a6;

    --bg: linear-gradient(135deg, #1e2937, #334155);
    --card: rgba(255, 255, 255, 0.95);

    --text: #1e2937;
    --text-light: #475569;

    --success: #10b981;
    --danger: #ef4444;

    --radius: 14px;
    --transition: all 0.3s ease;
}

/* ===============================
   RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   BODY
================================= */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* ===============================
   AUTH CONTAINER
================================= */
.auth-container {
    width: 100%;
    max-width: 450px;
}

a{
    text-decoration: none;
    color: white;
    font-weight: 600;
}
.auth-container p {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;

    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    text-align: center;

    border-radius: 10px;
    cursor: pointer;
    width: 100%;

    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.auth-container p:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.auth-container p:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.auth-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===============================
   HEADINGS
================================= */
h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

h2 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* ===============================
   FORM FIELDS
================================= */
input,
select {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;

    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* ===============================
   PASSWORD FIELD
================================= */
.password-group {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.password-group input {
    padding-right: 50px;
}

.password-group .toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    color: #64748b;
    transition: var(--transition);
}

.password-group .toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.15);
}

/* ===============================
   BUTTON
================================= */
button {
    width: 100%;
    padding: 14px;
    margin-top: 12px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;

    transition: var(--transition);
    margin-bottom: 12px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35);
}

/* ===============================
   MESSAGE STYLES
================================= */
.error {
    color: var(--danger);
    margin-top: 10px;
}

.success {
    color: var(--success);
    margin-top: 10px;
}

/* ===============================
   SUCCESS BOX
================================= */
.success-box {
    background: linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    color: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 15px;

    text-align: center;
    font-weight: 600;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ===============================
   POPUP
================================= */
.success-popup {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.6);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    z-index: 999;
}

.popup-box {
    width: 100%;
    max-width: 420px;

    background: #fff;
    padding: 30px 20px;

    border-radius: 14px;
    text-align: center;

    animation: scaleIn 0.4s ease;
}

.popup-box h2 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.popup-box p {
    margin-top: 10px;
    line-height: 1.6;
}

.popup-box .btn {
    display: inline-block;
    margin-top: 18px;

    padding: 10px 22px;

    background: #1e3a8a;
    color: #fff;

    text-decoration: none;
    border-radius: 8px;
}

/* ===============================
   ANIMATION
================================= */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.75);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===============================
   MOBILE
   320px - 600px
================================= */
@media (max-width: 600px) {

    body {
        padding: 12px;
    }

    .auth-card {
        padding: 25px 18px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    input,
    select,
    button {
        font-size: 15px;
        padding: 13px;
    }

    .password-group input {
        padding-right: 50px;
    }

    .password-group .toggle {
        font-size: 24px;
    }

    .popup-box {
        padding: 25px 15px;
    }
}

/* ===============================
   TABLET
   601px - 1024px
================================= */
@media (min-width: 601px) and (max-width: 1024px) {

    .auth-container {
        max-width: 550px;
    }

    .auth-card {
        padding: 40px 30px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    input,
    select,
    button {
        font-size: 16px;
    }

    .password-group .toggle {
        font-size: 23px;
    }
}

/* ===============================
   LARGE DESKTOP
================================= */
@media (min-width: 1200px) {

    .auth-container {
        max-width: 500px;
    }

    .auth-card {
        padding: 45px 35px;
    }
}