/* Login Page Styles */

.login-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #81c784 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.login-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Left Side - Image */
.login-image {
    background: linear-gradient(rgba(17, 115, 49, 0.4), rgba(17, 115, 49, 0.5)),
                url('../images/LoginImage.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 50px 35px;
    position: relative;
    min-height: 500px;
}

.login-logo {
    color: white;
    text-align: left;
}

.login-logo img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    border-radius: 50%;
}

.login-logo h2 {
    font-size: clamp(22px, 2vw, 26px);
    margin-bottom: 5px;
    font-weight: 600;
}

.login-logo p {
    font-size: clamp(13px, 1vw, 15px);
    color: #e0e0e0;
}

/* Right Side - Form */
.login-form-container {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-container h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: clamp(13px, 1vw, 15px);
    margin-bottom: 30px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: clamp(13px, 1vw, 15px);
    transition: border-color 0.3s;
    background-color: #f5f5f5;
}

.form-group input:focus {
    outline: none;
    border-color: #117331;
    background-color: white;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(12px, 1vw, 14px);
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-link {
    color: #117331;
    font-size: clamp(12px, 1vw, 14px);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    padding: 13px;
    background-color: #117331;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 0.5px;
}

.btn-signin:hover {
    background-color: #0d5a26;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 12px;
    color: #999;
    font-size: clamp(12px, 0.9vw, 14px);
}

.btn-google {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-google:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: clamp(12px, 1vw, 14px);
    color: #666;
}

.register-link a {
    color: #117331;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 30px 15px;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        width: 95%;
    }
    
    .login-image {
        min-height: 220px;
        padding: 35px 25px;
    }
    
    .login-logo img {
        width: 55px;
        height: 55px;
    }
    
    .login-form-container {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 30px 20px;
    }
    
    .login-image {
        min-height: 180px;
        padding: 30px 20px;
    }
}

.alert-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    margin-bottom: 15px;
}
