/* Login Page Styles - Split Layout */

/* Button Reset - Clean appearance */
button.login-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    resize: none;
    transform: none;
    scale: none;
}

.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Left Side - Image Section */
.login-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.login-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(25, 77, 61, 0.8) 0%,
        rgba(129, 195, 68, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 500px;
}

.overlay-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 20px;
}

.overlay-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.overlay-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

/* Right Side - Login Form */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4EF;
    padding: 40px;
    margin-left: -80px;
    z-index: 2;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.5);
    border-radius: 20px 0 0 20px;
}

.login-form-container {
    width: 100%;
    max-width: 600px;
    padding: 60px 50px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #194D3D 0%, #81C344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin: 0;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 40px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.input-icon .icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(35%) sepia(8%) saturate(1090%) hue-rotate(169deg) brightness(93%) contrast(86%);
    transition: all 0.3s ease;
}

.form-group input:focus ~ .input-icon .icon {
    filter: brightness(0) saturate(100%) invert(51%) sepia(98%) saturate(1448%) hue-rotate(202deg) brightness(97%) contrast(93%);
}

.form-group input {
    width: 100%;
    border-radius: 0;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    background: transparent;
    box-sizing: border-box;
    color: #2c3e50;
    border: none !important;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #81C344;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.form-group label {
    position: absolute;
    left: 40px;
    top: 1px;
    font-size: 1.2rem;
    color: #adb5bd;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -15px;
    font-size: 1rem;
    color: #81C344;
}

.form-group input::placeholder {
    color: #adb5bd;
    font-size: 1rem;
    text-align: left;
    font-weight: 400;
}

.input-line {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e6ed;
    transition: all 0.3s ease;
}

.form-group input:focus ~ .input-line {
    background: #81C344;
    height: 2px;
}

button.login-btn {
    width: 100%;
    height: 66px;
    background: linear-gradient(135deg, #194D3D 0%, #81C344 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

button.login-btn:hover {
    background: linear-gradient(135deg, #0f2f1f 0%, #6bb03a 100%);
    box-shadow: 0 15px 30px rgba(129, 195, 68, 0.4);
}

button.login-btn:active {
    background: linear-gradient(135deg, #0a1f15 0%, #5a9030 100%);
}

button.login-btn:focus {
    outline: none;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #f5c6cb;
    font-size: 0.95rem;
    text-align: center;
    animation: shake 0.6s ease-in-out;
    box-shadow: 0 4px 8px rgba(114, 28, 36, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Responsive Design - Desktop Only */

/* Loading State */
button.login-btn.loading {
    pointer-events: none;
    cursor: not-allowed;
}

button.login-btn.loading .btn-text {
    display: none;
}

button.login-btn.loading .btn-loading {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loading {
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Animations */

/* Focus improvements */
.form-group input:focus + label {
    color: #81C344;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #81C344;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #194D3D;
}

/* Responsive Design for Login Page - Laptop/Notebook screens */
@media (max-width: 1300px) {
    .login-form-container {
        padding: 50px 40px;
    }
    
    .form-header h1 {
        font-size: 2.5rem;
    }
    
    .form-header p {
        font-size: 1.2rem;
    }
    
    .overlay-content h2 {
        font-size: 2.5rem;
    }
    
    .overlay-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .login-form-container {
        padding: 45px 35px;
    }
    
    .form-header h1 {
        font-size: 2.3rem;
    }
    
    .form-header p {
        font-size: 1.15rem;
    }
    
    .overlay-content h2 {
        font-size: 2.3rem;
    }
    
    .overlay-logo {
        width: 100px;
        height: 100px;
    }
    
    .form-group input {
        font-size: 1.05rem;
    }
    
    .form-group label {
        font-size: 1.15rem;
    }
    
    button.login-btn {
        height: 62px;
        font-size: 1.15rem;
    }
}
