@import url('https://fonts.googleapis.com/css?family=Nunito:400,700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', Arial, sans-serif;
    background: linear-gradient(135deg, #fff 0%, #e4eeff 100%);
    min-height: 100vh;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2746c3;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 8px rgba(70, 95, 150, 0.07);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 34px;
    margin-right: 0.8em;
}

.logo span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    letter-spacing: 1px;
}

.menu a:hover {
    color: #ffaf57;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    align-items: center;
    min-height: 88vh;
}

.login-wrapper {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(39,70,195,0.13);
    min-width: 340px;
    max-width: 100%;
    margin: 2rem 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.3em;
}

.login-form h2 {
    color: #2746c3;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.login-form label {
    color: #3e3e3e;
    font-weight: 600;
    margin-bottom: 0.1em;
}


.login-form input {
    padding: 0.9em;
    border: 1px solid #c2cae6;
    border-radius: 9px;
    outline: none;
    font-size: 1rem;
    background: #f5f7fb;
    transition: border-color 0.2s;
}
.login-form input:focus {
    border-color: #2746c3;
}

.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.toggle-password {
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #b4b4b4;
    padding: 0 4px;
    z-index: 2;
}

.submit-btn {
    margin-top: 0.5rem;
    padding: 0.9em;
    background: #2746c3;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #193081;
}

.register-link {
    text-align: center;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.register-link span {
    margin-right: 0.3rem;
    color: #888;
}

.register-link a {
    color: #2746c3;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #193081;
}

@media (max-width: 900px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    .login-wrapper {
        min-width: 280px;
        padding: 1.7rem 1rem;
    }
    .menu {
        gap: 1.1rem;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 0.7rem;
    }
    .logo span {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .menu {
        display: none;
        flex-direction: column;
        background: #2746c3;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        padding: 1.3em 0;
        z-index: 100;
        gap: 1.7em;
        box-shadow: 0 2px 10px rgba(39,70,195, 0.15);
    }
    .menu.open {
        display: flex;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

 .centered-div {
            text-align: center;
            margin-bottom: 20px; /* Adjust spacing as needed */
        }
