/* Modern Login Page Styles - Wide Rectangle Layout */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #FF4500 0%, #8B0000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-wrapper .auth-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 1px 0 20px rgba(0, 0, 0, .08);
    padding: 40px 80px;
    margin: auto;
    width: 90%;
    max-width: none !important;
}

.auth-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

/* Logo Section - Left Side */
.logo-section {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #e2e8f0;
}

.logo-container {
    margin-bottom: 20px;
}

.login-logo {
    width: 180px;
    height: auto;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 15px;
    color: #718096;
    font-weight: 400;
}

/* Form Section - Right Side */
.form-section {
    width: 100%;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.input-icon {
    color: #FF4500;
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #2d3748;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: #FF4500;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.modern-input::placeholder {
    color: #a0aec0;
}

.error-text {
    color: #e53e3e;
    font-size: 13px;
    font-weight: 500;
    display: block;
}

/* Captcha Section */
.captcha-section {
    margin-top: 20px;
}

.captcha-container {
    margin-bottom: 16px;
}

.captcha-image {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    margin-top: 8px;
}

/* Button Section */
.button-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-btn,
input[type="submit"].modern-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #FF4500 0%, #8B0000 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.modern-btn:hover,
input[type="submit"].modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
    background: linear-gradient(135deg, #FF5722 0%, #A00000 100%);
}

.modern-btn:active,
input[type="submit"].modern-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.4);
}

.submit-btn-image {
    display: none;
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
    padding: 12px;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

.error-message:not(:empty) {
    display: block;
}

/* Footer Section */
.footer-section {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.footer-text {
    font-size: 13px;
    font-weight: 500;
    color: #718096;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .auth-box {
        padding: 40px 50px;
    }

    .logo-section {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .auth-box {
        padding: 30px 25px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .modern-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .modern-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .login-logo {
        width: 100px;
    }
}

/* Accessibility */
.modern-input:focus-visible,
.modern-btn:focus-visible {
    outline: 3px solid #FF4500;
    outline-offset: 2px;
}

/* Legacy compatibility */
#loginheader,
#loginBack,
#loginbg,
#msg,
#msgcontent {
    display: none;
}
