* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

body {
    background: linear-gradient(69.8deg, #ECFDFF, white);
    background-size: cover; 
    background-repeat: no-repeat;
    min-height: 100vh;
}

header {
    background-color: #33458E;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: center;
}

.text-logo img {
    max-height: 50px;
    width: auto;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 1rem;
}

.login_box {
    background-color: white;
    padding: 2rem; 
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content img {
    height: 80px;
    width: 80px;
    margin-bottom: 0.5rem;
}

.content h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.content-container {
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 700;
    text-align: left; 
}

.form-group input,
.password-container {
    flex: 1; /* input takes remaining space */
    width: 100%;
}

.form-group input {
    padding: 0.6rem;
    font-size: 0.95rem;
    border: 2px solid black;
    border-radius: 5px;
}

.password-container {
    position: relative;
    flex: 1; /* match size with other inputs */
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;          
    box-sizing: border-box; 
    padding: 0.7rem;
    padding-right: 2.5rem; 
    font-size: 0.95rem;
    border: 2px solid black;
    border-radius: 5px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

.content-container2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

.error-message {
    color: red;
}

.forgot_pass {
    text-decoration: none;
    color: #0EA5D9;
    font-size: 1rem;
    margin: 1.5rem 0;
}

.forgot_pass:hover {
    text-decoration: underline;
}

.remember-me-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    gap: 5px; 
}

.remember-me-container input {
    margin: 0; 
    width: auto; 
}

.remember-me-container label {
    margin: 0; 
    font-size: 14px;
    font-weight: 600; 
    white-space: nowrap; 
}

form .login-btn {
    width: 100%;
    max-width: 220px;
    padding: 0.8rem;
    background-color: #0EA5D9;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 6px 6px 4px rgba(0, 0, 0, 0.2);
    margin: auto;
    margin-bottom: 2rem;
}

form .login-btn:hover {
    background-color: #007bb5;
}

.signup-text {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
}

.signup-text a {
    color: #0EA5D9;
    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* Pop-up */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #10182F;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 400px;
    z-index: 1001;
}

.popup h2 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.popup button {
    display: block;
    width: 75%;
    margin: 20px auto;
    padding: 12px;
    border: none;
    background-color: #229ED9;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup button:hover {
    background-color: #007bb5;
}

/*---------- RESPONSIVE DESIGN ----------*/

/* Tablets */
@media (max-width: 768px) {
    section {
        padding: 1rem;
    }

    .login_box {
        padding: 1.5rem;
    }

    .content h1 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        flex: unset;
        width: 100%;
        text-align: left;
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .password-container {
        width: 100%;
    }
    
    .error-message {
        font-size: 0.9rem;
        text-align: center;
        margin-top: -0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    header {
        padding: 0.6rem;
    }

    .text-logo img {
        max-height: 40px;
    }

    .login_box {
        padding: 1rem;
        border-radius: 8px;
    }

    .content h1 {
        font-size: 1.25rem;
    }
    
    .form-group label {
        font-size: 14px;
    }

    .forgot_pass {
        font-size: 0.9rem;
    }

    .signup-text {
        font-size: 0.9rem;
    }

    .remember-me-container label {
        font-size: 12px;
    }
}