/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, 
            #1B4332 0%,     /* Deep Forest Green */
            #2D5016 15%,    /* Dark Moss */
            #40531B 30%,    /* Forest Floor */
            #2D5016 45%,    /* Dark Moss */
            #1B4332 60%,    /* Deep Forest Green */
            #081C15 75%,    /* Shadow Green */
            #1B4332 90%,    /* Deep Forest Green */
            #2D5016 100%    /* Dark Moss */
        );
    background-size: 400% 400%;
    animation: forestBreeze 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Sunlight filtering through trees */
        radial-gradient(ellipse at 25% 20%, rgba(144, 238, 144, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 30%, rgba(173, 255, 47, 0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 70%, rgba(152, 251, 152, 0.08) 0%, transparent 45%),
        /* Tree canopy shadows */
        radial-gradient(ellipse at 10% 60%, rgba(0, 0, 0, 0.2) 0%, transparent 30%),
        radial-gradient(ellipse at 90% 80%, rgba(0, 0, 0, 0.15) 0%, transparent 25%),
        /* Dappled light effect */
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 15%);
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Subtle leaf patterns */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(34, 139, 34, 0.02) 100px,
            rgba(34, 139, 34, 0.02) 102px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 150px,
            rgba(0, 100, 0, 0.015) 150px,
            rgba(0, 100, 0, 0.015) 152px
        );
    pointer-events: none;
}

@keyframes forestBreeze {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 25%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 25% 75%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: rgba(248, 255, 248, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(144, 238, 144, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(34, 139, 34, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(46, 139, 87, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #151A2D, #2c3e50);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid white;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-form {
    padding: 40px 30px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #151A2D;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #151A2D;
    background: white;
    box-shadow: 0 0 0 3px rgba(21, 26, 45, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
}

.password-toggle:hover {
    color: #151A2D;
}

/* User Type Selector */
.user-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.user-type-selector input[type="radio"] {
    display: none;
}

.user-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    text-align: center;
}

.user-type-option:hover {
    border-color: #151A2D;
    background: white;
}

.user-type-option i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #6c757d;
}

.user-type-option span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #151A2D;
}

.user-type-selector input[type="radio"]:checked + .user-type-option {
    border-color: #151A2D;
    background: #151A2D;
    color: white;
}

.user-type-selector input[type="radio"]:checked + .user-type-option i,
.user-type-selector input[type="radio"]:checked + .user-type-option span {
    color: white;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #151A2D, #2c3e50);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 26, 45, 0.3);
}

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

.login-btn.loading span {
    display: none;
}

.login-btn.loading .login-spinner {
    display: block !important;
}

/* Login Message */
.login-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Footer */
.login-footer {
    background: #f8f9fa;
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.demo-accounts h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #151A2D;
    font-size: 1rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.demo-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-account:hover {
    border-color: #151A2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-account i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #151A2D;
}

.demo-account span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #151A2D;
}

.system-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

.system-info p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
        max-width: none;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-form {
        padding: 30px 20px 20px;
    }
    
    .user-type-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .user-type-option {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .user-type-option i {
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .demo-account {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .demo-account i {
        margin-bottom: 0;
    }
    
    .login-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-header {
        padding: 25px 15px;
    }
    
    .login-form {
        padding: 25px 15px 15px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}
