/* =============================
   GLOBAL
============================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9f6;
    color: #2d2d2d;
}

/* =============================
   HEADER
============================= */
.header {
    background: white;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #7aa33a;
}

.logo {
    max-width: 250px;
}

/* =============================
   MAIN
============================= */
.container {
    text-align: center;
    margin-top: 120px;
}

h1 {
    font-size: 36px;
    color: #4b6f2a;
    margin-bottom: 10px;
}

p {
    font-size: 18px;
    color: #666;
}

/* =============================
   INPUTS
============================= */
.login-box input,
.form-box input {
    display: block;
    width: 260px;
    margin: 10px auto;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* =============================
   BUTTON
============================= */
button {
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 16px;
    background: #7aa33a;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #5f822d;
}

/* =============================
   CAPTCHA
============================= */
.captcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* =============================
   ACTION GROUP
============================= */
.action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.back-link {
    font-size: 14px;
    color: #6a8f2c;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* =============================
   POPUP (🔥 CRITICAL FIX)
============================= */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

/* ensure hidden always wins */
.hidden {
    display: none;
}

.popup.hidden {
    display: none !important;
}

/* =============================
   FOOTER
============================= */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #e5eddc;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #2d2d2d;
}