/* Split Layout Login Page - 6:4 Ratio */

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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f1111;
}

/* Main Login Page Layout */
.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Banner (60%) */
.login-banner {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circles for visual interest */
.login-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    top: -200px;
    left: -200px;
}

.login-banner::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    bottom: -100px;
    right: -100px;
}

.banner-content {
    text-align: center;
    color: #1b5e20;
    z-index: 1;
    padding: 40px;
}

.banner-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.banner-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1b5e20;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #2e7d32;
}

/* Right Side - Login Form (40%) */
.login-form-section {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    position: relative;
}

/* Login Box */
.login-box {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    padding: 40px;
}

/* Login Title */
.login-title {
    font-size: 32px;
    font-weight: 600;
    color: #0f1111;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.login-form {
    width: 100%;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f1111;
    margin-bottom: 8px;
}

/* Input Fields */
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #0f1111;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-input:hover {
    border-color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Login Error Box */
.login-error-box {
    margin: 0 0 20px 0;
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    display: none;
}

.login-error-box.show {
    display: block;
}

.login-error-box i {
    margin-right: 8px;
}

/* Login Button */
.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(46, 125, 50, 0.25);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.35);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.25);
}

.login-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #4caf50;
    cursor: pointer;
}

.remember-me span {
    color: #4b5563;
}

.forgot-password {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* Register Section */
.register-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.register-text {
    font-size: 14px;
    color: #6b7280;
}

.register-link {
    color: #2e7d32;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 6px;
}

.register-link:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* Footer */
.login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    text-align: center;
    background-color: #ffffff;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    margin: 0 12px;
}

.footer-links a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #9ca3af;
}

.footer-icp {
    margin-top: 8px;
}

.footer-icp a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 12px;
}

.footer-icp a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* Focus visible for accessibility */
.login-btn:focus-visible,
.form-input:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .login-banner {
        flex: 0 0 50%;
    }

    .login-form-section {
        flex: 0 0 50%;
    }

    .banner-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }

    .login-banner {
        flex: none;
        height: 200px;
        padding: 30px 20px;
    }

    .banner-logo {
        width: 80px;
        margin-bottom: 15px;
    }

    .banner-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .login-form-section {
        flex: 1;
        padding: 30px 20px 100px;
    }

    .login-box {
        padding: 20px;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .login-footer {
        padding: 16px 20px;
    }
}
