/* Login Form Styling */
.logged-out.has-login-form {
    max-width: 400px;
    width: 100%;
    margin: 60px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    box-sizing: border-box;
}

/* Already logged in message styling */
.already-logged-in {
    max-width: 400px;
    width: 100%;
    margin: 60px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.already-logged-in::before {
    content: "";
    display: block;
    height: 4px;
    background-color: #29458B; /* Using blue for already logged in */
    margin-bottom: 20px;
    border-radius: 4px 4px 0 0;
    margin: -30px -30px 20px -30px;
}

.already-logged-in p {
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
    color: #333;
}

.already-logged-in .button {
    display: inline-block;
    background-color: #29458B;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
}

.already-logged-in .button:hover {
    background-color: #1e3266;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Apply box-sizing to all elements */
.logged-out.has-login-form *,
.logged-out.has-login-form *::before,
.logged-out.has-login-form *::after {
    box-sizing: border-box;
}

#loginform {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#loginform .login-username,
#loginform .login-password,
#loginform .login-remember,
#loginform .login-submit {
    margin-bottom: 20px;
    width: 100%;
}

#loginform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-family: 'Lato', sans-serif;
}

#loginform .input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    height: auto; /* Ensure height is auto */
}

#loginform .input:focus {
    border-color: #29458B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 69, 139, 0.2);
}

/* Improve input field accessibility */
#loginform .input:focus-visible {
    outline: 2px solid #29458B;
    outline-offset: 1px;
}

#loginform .login-remember label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

#loginform .login-remember input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#loginform .button-primary {
    display: block;
    width: 100%;
    background-color: #29458B;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
    position: relative;
    overflow: hidden;
}

#loginform .button-primary:hover {
    background-color: #1e3266;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Improve button accessibility */
#loginform .button-primary:focus {
    outline: 2px solid #29458B;
    outline-offset: 2px;
}

/* Add button click effect */
#loginform .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add a decorative element that matches the theme's highlight style */
.logged-out.has-login-form::before {
    content: "";
    display: block;
    height: 4px;
    background-color: #932A2C;
    margin-bottom: 20px;
    border-radius: 4px 4px 0 0;
    margin: -30px -30px 20px -30px;
}

/* Add subtle background pattern */
.logged-out.has-login-form::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(41, 69, 139, 0.03) 25%, transparent 25%, transparent 50%, rgba(41, 69, 139, 0.03) 50%, rgba(41, 69, 139, 0.03) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* Error message styling */
.login-error {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .logged-out.has-login-form {
        max-width: 90%;
        margin: 40px auto;
        padding: 20px;
    }
    
    #loginform .input {
        font-size: 16px; /* Prevent zoom on mobile */
    }
} 