/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}
*/

/* Main container for login form */
.login-container {
    font-family: Arial, sans-serif;
    width: 100%;
    /*max-width: 600px;*/
    /*text-align: center;
    place-self: center;
    align-items: center;*/
    justify-items: center;
}

/* Heading styles */
.login-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Form styles */
.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Label styles */
.login-container label {
    font-size: 24px;
    font-weight: 400;
    /*margin-bottom: 8px;*/
    text-align: center;
    color: #000000;
}

/* Input fields */
.login-container input {
    width: 420px;
    /*max-width: 420px;*/
    font-size: 24px;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #D9D9D9;
    /*place-self: center;*/
}

/*
.login-container input:focus {
    border-color: #FBE885;
}
*/

/* Submit Button */
.login-container button {
    background-color: #2B4563;
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 14px;
    font-size: 32px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 40px;   /* TODO запомнить меня и убрать маржины */
    margin-bottom: 35px;
    /*place-self: center;*/
}


.login-container button:hover {
    background-color: #0d00ff;
}

/* Container for Register and Forgot Password links */
.login-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Style the individual links */
.login-links a {
    font-size: 14px;
    color: black;
    text-decoration: none;
    margin: 0 105px;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #0d00ff;
}

/* Message styles for login errors */
#loginMessage {
    /*margin-top: 10px;*/
    color: red;
    font-size: 14px;
    display: none;
}

.error-message {
    color: red;
    font-size: 16px;
    /*margin-bottom: 20px;*/
    text-align: center;
}

.login-container .remember-me {
    display: flex;
    color: #333;
    place-items: baseline;
    gap: 15px;
}

.login-container .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0073aa; /* Optional: checkbox color in supported browsers */
    cursor: pointer;
}

.remember-me label {
    font-size: 16px;
}

.login-logo-field {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
.login-logo-field .site-logo img {
    width: 50px;
    height: auto;
}
*/

.login-logo-field .site-title {
    font-size: 54px;
    position: relative;
    font-weight: 300;
    font-family: system-ui;
    margin: 0;
    color: #000000;
    /*right: 40px;*/
    top: 0.1em;
}

.login-page-header {
    padding-bottom: 0%;
    padding-top: 0%;
}

.login-page-header .header-left-group {
    opacity: 0;
    pointer-events: none; /* optional: prevent interaction */
    user-select: none;     /* optional: prevent text selection */
}

.login-error-wrapper {
    height: 1.5em; /* adjust to fit one line of text */
    margin-bottom: 10px;
    text-align: center;
}

.login-error {
    color: red;
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
}

/* ========================================
   MINIMAL MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 480px) {
    .login-container input {
        width: 90vw;
        max-width: 90vw;
        font-size: 18px;
    }
    
    .login-container button {
        width: 90vw;
        max-width: 90vw;
        font-size: 24px;
    }
    
    .login-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-links a {
        margin: 0;
    }
    
    .login-logo-field .site-title {
        font-size: 36px;
    }
}

/* ========================================
   LOGIN PAGE MOBILE HEADER FIX
   ======================================== */
@media (max-width: 768px) {
    /* Only hide logo and title on login page for mobile */
    .login-page-header .header-left-group {
        display: none !important; /* Completely remove logo and title from layout */
    }
    
    /* Keep navigation visible but ensure it's properly positioned */
    .login-page-header .header-right-group {
        opacity: 1; /* Make sure navigation is visible */
        pointer-events: auto; /* Re-enable interaction */
        user-select: auto; /* Re-enable text selection */
    }
    
    /* Ensure login page header takes minimal space */
    .login-page-header {
        padding: 0;
        margin: 0;
        min-height: auto; /* Allow natural height for navigation */
    }
}
