/* ============================================
   Login Page - Compact & Responsive
   ============================================ */

/* Base body styles */
body.login-page {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hide default elements */
body.login-page #container {
    background: transparent;
    box-shadow: none;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.login-page #header,
body.login-page #nav,
body.login-page hr,
body.login-page > .error_bar,
body.login-page > .warning_bar,
body.login-page > .notice_bar,
body.login-page #container > .error_bar,
body.login-page #container > .warning_bar,
body.login-page #container > .notice_bar,
body.login-page #content > #msg_error,
body.login-page #content > #msg_notice,
body.login-page #content > #msg_warning,
body.login-page #footer {
    display: none !important;
}

/* Content area - centered */
body.login-page #content {
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ============================================
   Login Card - Compact Size
   ============================================ */
.login-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 32px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* ============================================
   Logo Section
   ============================================ */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo svg {
    height: 42px;
    width: auto;
}

/* ============================================
   Heading Section
   ============================================ */
.login-heading {
    text-align: center;
    margin-bottom: 24px;
}

.login-heading h1 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.login-heading p {
    color: #a0aec0;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   Error Messages
   ============================================ */
.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
}

/* ============================================
   Form Styling
   ============================================ */
body.login-page #clientLogin {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.login-form-group {
    margin-bottom: 16px;
    width: 100%;
}

.login-form-group label {
    display: block;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ============================================
   Input Fields - Compact
   ============================================ */
.login-form-group input[type="text"],
.login-form-group input[type="password"],
.login-form-group input[type="email"],
body.login-page input[type="text"],
body.login-page input[type="password"],
body.login-page input[type="email"] {
    width: 100% !important;
    padding: 11px 14px !important;
    background: #1a202c !important;
    border: 1px solid #4a5568 !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    display: block !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.login-form-group input::placeholder {
    color: #718096 !important;
}

.login-form-group input:focus,
body.login-page input:focus {
    outline: none !important;
    border-color: #ff6b35 !important;
    background: #1a202c !important;
}

.login-form-group input:hover {
    background: #252d3a !important;
}

/* Autofill override */
.login-form-group input:-webkit-autofill,
.login-form-group input:-webkit-autofill:hover,
.login-form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e2e8f0 !important;
    -webkit-box-shadow: 0 0 0px 1000px #1a202c inset !important;
    box-shadow: 0 0 0px 1000px #1a202c inset !important;
    border: 1px solid #4a5568 !important;
}

/* ============================================
   Submit Button - Compact
   ============================================ */
.login-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #ff6b35 !important;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.login-submit-btn:hover {
    background: #ff5722 !important;
}

.login-submit-btn:active {
    transform: scale(0.98);
}

/* ============================================
   Additional Links Box - Compact
   ============================================ */
.login-demo-box {
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-top: 16px;
}

.login-demo-title {
    color: #cbd5e0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-demo-item {
    color: #a0aec0;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.5;
}

.login-demo-item:first-child {
    margin-top: 0;
}

.login-demo-item:last-child {
    margin-bottom: 0;
}

.login-demo-item .label {
    color: #ff6b35;
    font-weight: 600;
}

.login-demo-item .value {
    color: #cbd5e0;
}

.login-demo-hint {
    color: #718096;
    font-size: 11px;
    margin-top: 10px;
}

.login-demo-item a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-demo-item a:hover {
    color: #93c5fd;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 480px) {
    body.login-page #content {
        padding: 16px;
    }

    .login-card {
        padding: 24px 20px;
        max-width: 100%;
    }

    .login-heading h1 {
        font-size: 20px;
    }

    .login-heading p {
        font-size: 12px;
    }

    .login-logo svg {
        height: 38px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .login-card {
        max-width: 360px;
    }
}