
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url(Assets/eCCC_background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    
}

.logo {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

h1 {
    color: #0a2342;
    margin-bottom: 20px;
    font-size: 24px;
}

.subtitle {
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #0a2342;
    font-weight: 500;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #0a2342;
    outline: none;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #0a2342;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.button-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 15px;
}

.button-row button {
    flex: 1;
    padding: 12px 0;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.3s ease forwards;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
    animation: popIn 0.4s ease forwards;
}

.contact-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    resize: none;

}

.submit-btn {
    margin-top: 15px;
    background: #0a2342;
    color: white;
}

.submit-btn:hover {
    background: #1a5eb0 !important;
}

.close-btn {
    margin-top: 15px;
    background: #0a2342 !important;
    color: white;
}

.close-btn:hover {
    background: #b91c1c !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.error-message {
    font-size: smaller;
    color: red;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

/* You can add this to your existing CSS file */

.login-btn {
    width: 100%;
    padding: 12px;
    background: #0a2342;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #153e6f;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #777;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

.help-text {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.help-text a {
    color: #0a2342;
    text-decoration: none;
    font-weight: 500;
}

.help-text a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 20px;
    }
}

.input-group select {
   width: 100%;
   height: 30px;
   text-align: center; 
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
}


.contact-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.3s ease forwards;
}


#successPopup {
    z-index: 1050; /* Higher z-index to make sure it's above other popups */
}

.popup .popup-message {
    margin-bottom: 20px;
}
.popup .close-btn {
    background-color: #f44336;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.popup.error {
    background-color: #ffe0e0;
    border: 1px solid #cc0000;
    color: #cc0000;
}