﻿/* IFFCO Attendance System - ULTIMATE GLASS EDITION 
   Matched for Razor View (Login.cshtml)
   Features: Curved Logo, Floating Background, Centered Spinner, Glass Modals
*/

:root {
    --primary: #1d976c;
    --primary-gradient: linear-gradient(135deg, #1d976c 0%, #115e59 100%);
    --primary-soft: rgba(29, 151, 108, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 1. Background & Floating Effect --- */
body {
    background: #050505;
    background-image: radial-gradient(circle at 10% 20%, rgba(29, 151, 108, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 40%), radial-gradient(circle at 50% 50%, #0f172a 0%, #050505 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
    position: relative;
}

    /* Floating Particles (Upward Motion) */
    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: moveParticles 25s linear infinite;
        z-index: 0;
    }

@keyframes moveParticles {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50px);
    }
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 151, 108, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

/* --- 2. Login Box (Glassmorphism) --- */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
}

.login-box {
    background: var(--glass-bg);
    border-radius: 40px; /* Highly Curved Corners */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    overflow: hidden;
}

    .login-box:hover {
        transform: translateY(-5px);
        border-color: rgba(29, 151, 108, 0.3);
    }

/* --- 3. Logo (Curved Styling) --- */
.login-header {
    padding: 40px 30px 15px;
    text-align: center;
}

    .login-header img {
        width: 185px;
        height: 86px;
        object-fit: contain;
        margin-bottom: 15px;
        /* Logo ko curve karne wala part */
        border-radius: 20px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        filter: drop-shadow(0 0 15px rgba(29, 151, 108, 0.3));
        transition: var(--transition);
    }

        .login-header img:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.1);
        }

    .login-header p {
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
    }

/* --- 4. Inputs & Icons --- */
.login-body {
    padding: 10px 40px 40px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    padding-left: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    height: 55px;
    border-radius: 16px;
    border: 1.5px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    padding-left: 50px;
    transition: var(--transition);
}

    .form-control:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 0 15px var(--primary-soft) !important;
    }

.main-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 18px;
}

.toggle-password {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
}

    .toggle-password:hover {
        color: var(--primary);
    }

/* --- 5. Button & Spinner Logic --- */
.btn-login {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    height: 56px;
    border-radius: 16px;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 0 10px 20px -5px rgba(29, 151, 108, 0.4);
    transition: var(--transition);
}

    .btn-login:hover:not(:disabled) {
        transform: translateY(-2px);
        filter: brightness(1.1);
    }

    .btn-login:disabled {
        opacity: 0.8;
        cursor: not-allowed;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Fa-spin ko center karne ke liye */
.fa-spin {
    font-size: 20px;
}

/* --- 6. Forgot Password & Modal --- */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 25px;
    text-decoration: none !important;
}

/* Modal Styling */
.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .modal-header .close {
        color: white;
        text-shadow: none;
        opacity: 0.5;
    }

.modal-requirement-list {
    list-style: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-top: 10px;
}

    .modal-requirement-list li {
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .modal-requirement-list li.valid {
            color: #2ecc71;
        }

            .modal-requirement-list li.valid i {
                color: #2ecc71;
            }

.progress {
    height: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
}

/* --- 7. Footer --- */
.footer-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 30px;
    line-height: 1.6;
}

    .footer-text b {
        color: white;
    }
