* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

/* Page Background */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e0e7ff, #f4f6fb);
}

/* Wrapper */
.login_bg {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Card */
.main_login {
    width: 760px;
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 22px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.main_login h1 {
    grid-column: span 2;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

/* Field Group */
.group {
    display: flex;
    flex-direction: column;
}

/* Labels */
.group label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

/* Inputs & Select */
.group input,
.group select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    transition: all 0.25s ease;
}

/* Focus Effect */
.group input:focus,
.group select:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Password */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
}

.toggle-password:hover {
    color: #007bff;
}

/* Button */
.group button {
    grid-column: span 2;
    margin-top: 6px;
    padding: 12px;
    background: #007bff;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Error Messages */
.errorlist {
    grid-column: span 2;
    list-style: none;
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .main_login {
        width: 95%;
    }
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 20px;
    }

    .main_login {
        grid-template-columns: 1fr;
    }

    .group button {
        grid-column: span 1;
    }
}
/* ===== MODAL OVERLAY ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

/* ===== MODAL BOX ===== */
.modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    width: 360px;
    position: relative;
    text-align: center;
    animation: popup 0.3s ease-in-out;
}

/* ===== POP ANIMATION ===== */
@keyframes popup {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #000;
}

/* ===== INPUT ===== */
.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* ===== VERIFY BUTTON ===== */
.verify-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.verify-btn:hover {
    background: #0056b3;
}

/* ===== ERROR TEXT ===== */
.error-text {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}
#successModal .modal-content {
    background: #e9fbe9;
    border: 1px solid #4CAF50;
}

#successModal h2 {
    color: #2e7d32;
}
