/* ============================================
   ADMIN LOGIN CSS - LIGHT / WHITE THEME
   Primary Color: #1E551D (Deep Forest Green)
   Accent Color:  #FFC73A (Vibrant Warm Gold)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: #f4f7f4;
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 85, 29, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 199, 58, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(244, 247, 244, 1) 0px, transparent 50%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #0f172a;
}

/* Dynamic Animated Background Container & Floating Glass Orbs */
.login-bg-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(30, 85, 29, 0.09) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.7;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 380px;
    height: 380px;
    top: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(30, 85, 29, 0.28) 0%, rgba(30, 85, 29, 0) 70%);
    animation: orbFloat1 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 199, 58, 0.35) 0%, rgba(255, 199, 58, 0) 70%);
    animation: orbFloat2 14s ease-in-out infinite alternate;
}

.orb-3 {
    width: 280px;
    height: 280px;
    top: 35%;
    right: 12%;
    background: radial-gradient(circle, rgba(30, 85, 29, 0.2) 0%, rgba(30, 85, 29, 0) 70%);
    animation: orbFloat3 10s ease-in-out infinite alternate;
}

.orb-4 {
    width: 320px;
    height: 320px;
    bottom: 15%;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 199, 58, 0.25) 0%, rgba(255, 199, 58, 0) 70%);
    animation: orbFloat4 11s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(70px, 90px) scale(1.15); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -70px) scale(1.1); }
}

@keyframes orbFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 60px) scale(1.2); }
}

@keyframes orbFloat4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -50px) scale(0.9); }
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 36px 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease;
}

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

.login-box:hover {
    box-shadow: 0 16px 40px rgba(30, 85, 29, 0.1);
    border-color: rgba(30, 85, 29, 0.3);
}

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(30, 85, 29, 0.15);
    border: 2px solid #FFC73A;
    padding: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.05) rotate(3deg);
    border-color: #1E551D;
}

/* Animated Company Brand Typography for Login */
.company-brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 6px;
    position: relative;
    padding-bottom: 8px;
}

.company-animated-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(90deg, #1E551D 0%, #d99b00 50%, #1E551D 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3.5s linear infinite;
    margin: 0;
    line-height: 1.2;
}

.company-animated-subtitle {
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #d99b00;
    text-transform: uppercase;
    margin-top: 2px;
    position: relative;
    display: inline-block;
    animation: pulseGold 2.5s ease-in-out infinite alternate;
}

.company-brand-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFC73A, transparent);
    animation: glowLine 2s ease-in-out infinite alternate;
}

.login-heading {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGold {
    0% { transform: scale(0.97); opacity: 0.85; text-shadow: 0 0 4px rgba(217, 155, 0, 0.3); }
    100% { transform: scale(1.03); opacity: 1; text-shadow: 0 0 10px rgba(217, 155, 0, 0.6); }
}

@keyframes glowLine {
    0% { width: 35%; opacity: 0.4; }
    100% { width: 85%; opacity: 1; }
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 24px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #334155;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.input-group label i {
    margin-right: 6px;
    color: #1E551D;
}

.input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font-size: 13px;
    transition: all 0.25s ease;
    background: #ffffff;
    color: #0f172a;
}

.input-group input:focus {
    border-color: #1E551D;
    box-shadow: 0 0 0 3px rgba(30, 85, 29, 0.12);
    background: #ffffff;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #1E551D;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 4px;
}

.toggle-password:hover {
    color: #d99b00;
}

/* Options row */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1E551D;
}

.forgot-link {
    color: #1E551D;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #d99b00;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1E551D 0%, #123d11 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(30, 85, 29, 0.25);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 85, 29, 0.35);
    background: linear-gradient(135deg, #256b23 0%, #1E551D 100%);
}

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

.error-box {
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #ef4444;
    animation: shake 0.4s ease;
}

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

.error-box::before {
    content: '⚠️';
    font-size: 14px;
}

.success-box {
    background: #ecfdf5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #10b981;
}

.success-box::before {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 28px 20px;
        border-radius: 20px;
        max-width: 95%;
    }
    .login-box h2 {
        font-size: 20px;
    }
}