/* Modern Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    background: #f8faf9;
}

/* Left Side - Branding */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #2D7D46 0%, #1D5D2E 50%, #154a23 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 1;
}

.login-brand__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 450px;
}

.login-brand__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

.login-brand__logo svg {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-brand__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.login-brand__title span {
    color: #D4A853;
}

.login-brand__text {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 40px;
}

.login-brand__features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: right;
}

.login-brand__feature {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.login-brand__feature:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-5px);
}

.login-brand__feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 168, 83, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-brand__feature-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.login-brand__feature-text h3 {
    margin: 0 0 3px;
    font-size: 1rem;
    color: #fff;
}

.login-brand__feature-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Right Side - Form */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    max-width: 550px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 40px;
    transition: color 0.3s;
}

.login-back:hover {
    color: #2D7D46;
}

.login-back i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.login-back:hover i {
    transform: translateX(3px);
}

.login-header {
    margin-bottom: 35px;
}

.login-header h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.login-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Hide browser-injected autofill/credential icons */
.form-input::-webkit-credentials-auto-fill-button,
.form-input::-webkit-textfield-decoration-container,
.form-input::-webkit-contacts-auto-fill-button,
.form-input::-webkit-credit-card-auto-fill-button,
.form-input::-ms-reveal,
.form-input::-ms-clear {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.form-input-wrapper {
    position: relative;
}

.field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.field-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.form-input-wrapper:focus-within .field-icon {
    color: #2D7D46;
}

.form-input {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #e8e8e8 !important;
    border-radius: 14px;
    background: #fff !important;
    padding: 16px 48px 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #2D7D46 !important;
    box-shadow: 0 0 0 4px rgba(45,125,70,0.1) !important;
}

.form-input::placeholder {
    color: #bbb;
}

/* Extra left padding for password field with toggle */
.has-toggle .form-input {
    padding-left: 50px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s;
    z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #2D7D46;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Remember & Forgot Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.remember-me input {
    width: 20px;
    height: 20px;
    accent-color: #2D7D46;
    cursor: pointer;
}

.remember-me span {
    color: #555;
    font-size: 0.95rem;
}

.forgot-password {
    color: #2D7D46;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Error Message */
.login-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff5f5, #fee);
    border: 1px solid #fcc;
    color: #c53030;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-error-icon {
    font-size: 1.2rem;
}

/* Submit Button */
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2D7D46, #1D5D2E);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45,125,70,0.35);
}

.login-btn:active {
    transform: translateY(-1px);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: #999;
    font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* Register Link */
.login-register {
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.login-register a {
    color: #2D7D46;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.login-register a:hover {
    color: #1D5D2E;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }
    
    .login-brand {
        padding: 50px 30px;
        min-height: auto;
    }
    
    .login-brand__features {
        display: none;
    }
    
    .login-brand__title {
        font-size: 2rem;
    }
    
    .login-brand__text {
        margin-bottom: 0;
        font-size: 1rem;
    }
    
    .login-form-side {
        padding: 40px 25px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .login-brand {
        padding: 35px 20px;
    }
    
    .login-brand__logo {
        font-size: 3.5rem;
    }
    
    .login-brand__title {
        font-size: 1.6rem;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
