/* ============================================================
   VOTER REGISTRATION PAGE – PERFECTLY MATCHES LOGIN PAGE
   ============================================================ */

body {
    background: #0e0e0e !important;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

html, body {
    height: 100%;
}

/* Wrapper centers the card similar to login */
.wrapper_admin {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 15px 150px 15px; /* space for footer */
    width: 100%;
}

/* FIX: Avoid conflict with Bootstrap .container */
.reg-card {
    background: #1a1a1a; 
    padding: 32px 28px;
    border-radius: 18px;
    max-width: 600px !important;
    width: 100%;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.25);
    margin-top: 20px;
    color: #f5f5f5;
}

/* Title */
.reg-card h2 {
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Divider */
.reg-card hr {
    border: 0;
    height: 1px;
    background: #444;
    margin-bottom: 25px;
}

/* Labels */
.reg-card label {
    color: #eaeaea;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

/* Inputs – SAME STYLE AS LOGIN */
.reg-card .form-control {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #333;
    font-size: 15px;
    background: #2a2a2a;
    color: #f5f5f5;
    margin-bottom: 17px;
}

.reg-card .form-control:focus {
    border-color: #67c97d;
    box-shadow: 0px 0px 5px rgba(103,201,125,0.45);
}

/* Submit button */
.btn-primary {
    width: 100%;
    background: #67c97d !important;
    border: none !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 600;
    border-radius: 10px !important;
    margin-top: 10px;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #5bb970 !important;
}

/* Cancel button */
.btn-danger {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 10px;
    margin-top: 12px;
}

/* Error alert */
.alert-error {
    background: #3a0000 !important;
    color: #ff8a8a !important;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #b00020 !important;
}

/* Footer (same as login theme) */
.main-footer {
    width: 100%;
    background: #111 !important;
    color: white !important;
    text-align: center;
    padding: 18px 0;
    font-weight: 600;
    font-size: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
}

/* ================================
   MOBILE VERSION (MATCHES LOGIN)
   ================================ */
@media (max-width: 600px) {

    .wrapper_admin {
        padding: 20px 15px 160px 15px !important;
        align-items: flex-start;
    }

    .reg-card {
        margin-top: 10px;
        padding: 25px 20px;
    }

    .reg-card h2 {
        font-size: 22px;
    }
}
