/*
 * Login Page Styles
 * Created: 2025-11-17
 * Description: Modern split-screen login page with dark blue glass effect theme
 * Dairy Giant - InnoDairy Client Application
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    line-height: 1.8;
}

/* ========================================
   LOGIN CONTAINER LAYOUT
   ======================================== */

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ========================================
   LEFT SECTION - DAIRY IMAGE SIDE
   ======================================== */

.left-section {
    flex: 1;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.left-section .logo-image {
    max-width: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.left-section .logo-image:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.left-section .cow-image {
    max-width: 300px;
    margin-bottom: 40px;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: white;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-section .cow-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.left-section h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.left-section p {
    font-size: 1.1em;
    text-align: center;
    line-height: 1.6;
    max-width: 500px;
    opacity: 0.95;
}

/* ========================================
   RIGHT SECTION - LOGIN FORM SIDE
   ======================================== */

.right-section {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-box {
    background: white;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
}

.login-box h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

/* Logo in login box */
.login-logo {
    display: block;
    max-width: 150px;
    margin: 0 auto 25px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

/* ========================================
   FORM ELEMENTS - ASP.NET LOGIN CONTROL
   ======================================== */

/* General label styling */
label {
    font-family: "Trebuchet MS", "Helvetica Neue", "Segoe UI", Arial, Helvetica, Verdana, "Lucida Grande", sans-serif;
    color: #000000;
    font-size: medium;
    line-height: 2.0;
}

/* Force proper layout for ASP.NET Login control */
#MainContent_LoginUser_UserNameLabel,
#MainContent_LoginUser_PasswordLabel,
span[id$="_UserNameLabel"],
span[id$="_PasswordLabel"] {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

#MainContent_LoginUser_UserName,
#MainContent_LoginUser_Password,
input[id$="_UserName"],
input[id$="_Password"] {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    height: 30px !important;
}

.form-group {
    margin-bottom: 32px;
    display: block;
    width: 100%;
    clear: both;
}

.form-group:last-of-type {
    margin-bottom: 25px;
}

.form-group label,
.form-group span[id*="Label"],
.form-group > span:first-child {
    display: block !important;
    color: #333 !important;
    font-size: 1.2em !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    line-height: 1.5 !important;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group .textbox,
.form-group input {
    width: 100% !important;
    padding: 20px 18px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 2em !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    display: block !important;
    margin-top: 0 !important;
    float: none !important;
    clear: both !important;
    line-height: 1.5 !important;
    min-height: 30px !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group .textbox:focus,
.form-group input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ========================================
   CHECKBOX - REMEMBER ME
   ======================================== */

.checkbox-group {
    margin-bottom: 25px;
    margin-top: 5px;
    display: flex !important;
    align-items: center;
    flex-direction: row !important;
    clear: both;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[id*="RememberMe"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-block !important;
}

.checkbox-group label,
.checkbox-group span {
    color: #666 !important;
    font-size: 1.1em !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    display: inline !important;
    width: auto !important;
    font-weight: normal !important;
}

/* ========================================
   BUTTONS
   ======================================== */

.login-button {
    width: 100%;
    padding: 7px;
    background: #1E3A8A;
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: block;
    text-align: center;
    margin-bottom: 0;
    min-height: 26px;
}

.login-button:hover {
    background: #2952B8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

/* ========================================
   ERROR MESSAGES & VALIDATION
   ======================================== */

.error-message {
    color: #dc3545 !important;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
    width: 100%;
}

.error-message.show {
    display: block !important;
}

/* Hide validators by default - only show on validation */
span[id*="Validator"],
span[id*="Required"] {
    display: none !important;
    color: #dc3545 !important;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Show validators when validation fails */
span[id*="Validator"][style*="inline"],
span[id*="Required"][style*="inline"] {
    display: block !important;
}

.failure-text {
    color: #dc3545;
    background: #fff5f5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
    border: 1px solid #fee;
}

/* ========================================
   FORGOT PASSWORD LINK
   ======================================== */

.forgot-password {
    margin-top: 20px;
    text-align: center;
}

.forgot-password a,
.forgot-password {
    color: #1E3A8A !important;
    text-decoration: none;
    font-size: 1.1em;
}

.forgot-password a:hover {
    text-decoration: underline !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .left-section {
        min-height: 40vh;
        padding: 40px 20px;
    }

    .left-section h1 {
        font-size: 1.8em;
    }

    .left-section p {
        font-size: 1em;
    }

    .left-section img {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .right-section {
        min-height: 60vh;
    }

    .login-box {
        padding: 30px 25px;
    }
}
