/* ================= GENERAL STYLES ================= */
.hidden {
    display: none !important;
}

.container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ================= HEADINGS ================= */
h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* ================= INPUTS ================= */
input, textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 15px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.2s border-color, 0.2s box-shadow;
}

input:focus, textarea:focus {
    border-color: #008cff;
    box-shadow: 0 0 5px rgba(0,140,255,0.3);
    outline: none;
}

/* Target the text wrapper around the login link */
form p, .container p {
    color: #555;         /* A nice dark grey so it's readable */
    text-align: center;  /* Centers it under the button */
    margin-top: 15px;    /* Adds space between the button and text */
    font-size: 0.9rem;   /* Makes it slightly smaller than main text */
    margin-right: 2rem;
}

/* ================= BUTTONS ================= */
button {
    width: 100%;
    background: #008cff;
    color: white;
    padding: 12px;
    border: none;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s background, 0.2s transform;
}

button:hover {
    background: #006fd1;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* ================= STATUS MESSAGE ================= */
#status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    color: #009900;
}

/* ================= LINKS ================= */
a {
    color: #008cff;
    text-decoration: none;
    transition: 0.2s color;
}

a:hover {
    color: #006fd1;
    text-decoration: underline;
}

/* ================= FORM SPACING ================= */
form {
    margin-bottom: 20px;
}

/* Bootstrap provides the base block display */
.form-label {
    margin-bottom: 0.5rem;
    color: black;
} 

/* ================= OTP FORM SPECIFIC ================= */
#otpForm input[readonly] {
    background-color: #e9ecef;
}

/* ================= HIDDEN ELEMENTS ================= */
.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.98);
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;            /* Force the form to be narrower than the screen */
        max-width: 400px;      /* Prevents it from getting too wide on tablets */
        margin: 50px auto;     /* Adds 50px of space at the top and bottom */
        padding: 25px 20px;    /* Internal spacing for a cleaner look */
        box-sizing: border-box; /* Crucial: keeps padding from pushing width past 90% */
    }

    input, button {
        font-size: 16px;       /* Prevents iOS from auto-zooming on focus */
    }}
    

/********************************************
 * LOGIN SUCCESS POPUP
 ********************************************/

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

    animation: fadeIn 0.3s ease;
}

.popup-box {
    background: #ffffff;
    width: 90%;
    max-width: 400px;

    padding: 30px;
    border-radius: 18px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    animation: popupSlide 0.3s ease;
}

.popup-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.popup-box h2 {
    margin-bottom: 10px;
    color: #111827;
}

.popup-box p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 25px;
}

.continue-btn {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.3s ease;
}

.continue-btn:hover {
    background: #1d4ed8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlide {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}