/* Root Colors */
:root {
    --ocean-blue: #1a6fa3;
    --seafoam-green: #2a9d8f;
    --sand: #e9c46a;
    --coral: #e76f51;
    --deep-blue: #264653;
    --light-blue: #8ecae6;
    --light-green: #a8dadc;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Login Section with Animated Gradient Overlay */
.login-section {
    position: relative;
    background: url("../photo/g1.jpg") center/cover no-repeat;
    color: #fff;
    padding: 120px 20px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

/* Animated Overlay */
.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(120deg, rgba(45, 90, 39, 0.8), rgba(45, 90, 39, 0.5), rgba(45, 90, 39, 0.8)); */
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ensure Login Card is above overlay */
.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95); /* slightly transparent */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

/* Decorative Top Border */
.login-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--seafoam-green), var(--ocean-blue));
}

/* Header */
.login-header h2 {
    color: var(--deep-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
}

/* Form Elements */
.login-form .form-label {
    font-weight: 500;
    color: var(--deep-blue);
    margin-bottom: 8px;
}

.login-form .form-control {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--seafoam-green);
    box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
}

.login-form .input-group .form-control {
    border-left: none;
}

/* Login Button */
.btn-login {
    background: linear-gradient(to right, var(--seafoam-green), var(--ocean-blue));
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: linear-gradient(to right, var(--ocean-blue), var(--seafoam-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Links & Text */
a {
    color: var(--ocean-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--seafoam-green);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-section {
        padding: 80px 20px 50px;
    }

    .login-card {
        padding: 30px 20px;
    }
}