/* ========================================
           RESET & BASE STYLING
           ======================================== */
           * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            position: relative;
            overflow-x: hidden;
        }

        /* ========================================
           BACKGROUND ANIMATION
           ======================================== */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
            animation: float 20s infinite linear;
            pointer-events: none;
        }

        @keyframes float {
            0% {
                transform: translateY(0px) rotate(0deg);
            }

            100% {
                transform: translateY(-100px) rotate(360deg);
            }
        }

        /* ========================================
           MAIN CONTAINER - COMPACT VERSION
           ======================================== */
        .auth-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 500px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: slideUp 0.6s ease-out;
            position: relative;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ========================================
           BRAND STYLING - COMPACT
           ======================================== */
        .auth-brand {
            text-align: center;
            margin-bottom: 20px;
        }

        .water-icon {
            color: #667eea;
            font-size: 32px;
            margin-bottom: 8px;
            display: block;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateY(0);
            }

            40% {
                transform: translateY(-8px);
            }

            60% {
                transform: translateY(-4px);
            }
        }

        .company-name {
            color: #2d3748;
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 4px;
            line-height: 1.2;
        }

        .company-tagline {
            color: #718096;
            font-size: 12px;
            font-weight: 500;
        }

        /* ========================================
           FORM STYLING - COMPACT
           ======================================== */
        .login-form {
            margin-top: 16px;
        }

        .form-group {
            margin-bottom: 16px;
            position: relative;
        }

        .form-label {
            display: block;
            margin-bottom: 6px;
            color: #4a5568;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.3s ease;
        }

        .input-wrapper {
            position: relative;
            margin-bottom: 25px;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px 12px 38px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            background: #ffffff;
            transition: all 0.3s ease;
            outline: none;
            font-family: inherit;
        }

        .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        .form-control.is-valid {
            border-color: #48bb78;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2348bb78' d='m2.3 6.73.94-.94 1.38-1.38.94-.94L3.66 1.8l-.94.94-.94.94-.94.94 1.88 1.88z'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 14px;
        }

        .form-control.is-invalid {
            border-color: #f56565;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f56565'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m6 4.5 0 2.5'/%3e%3cpath d='m6 9.5 0 0'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 14px;
        }

        .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #a0aec0;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-control:focus+.input-icon {
            color: #667eea;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #a0aec0;
            cursor: pointer;
            font-size: 16px;
            padding: 4px;
            transition: all 0.3s ease;
        }

        .password-toggle:hover {
            color: #667eea;
        }

        /* ========================================
           FEEDBACK STYLING - MINIMAL
           ======================================== */
        .feedback {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            font-size: 11px;
            margin-top: 4px;
            padding-left: 4px;
            opacity: 0;
            transform: translateY(-5px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .feedback.show {
            opacity: 1;
            transform: translateY(0);
        }

        .feedback.valid {
            color: #48bb78;
        }

        .feedback.invalid {
            color: #f56565;
        }

        .feedback i {
            margin-right: 4px;
        }

        /* ========================================
           CHECKBOX STYLING - COMPACT
           ======================================== */
        .checkbox-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: 18px;
        }

        .custom-checkbox {
            position: relative;
            margin-right: 10px;
        }

        .custom-checkbox input {
            opacity: 0;
            width: 18px;
            height: 18px;
            margin: 0;
        }

        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            width: 18px;
            height: 18px;
            background: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .custom-checkbox input:checked+.checkmark {
            background: #667eea;
            border-color: #667eea;
        }

        .checkmark::after {
            content: '';
            position: absolute;
            display: none;
            left: 5px;
            top: 1px;
            width: 5px;
            height: 9px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .custom-checkbox input:checked+.checkmark::after {
            display: block;
        }

        .checkbox-label {
            color: #4a5568;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            user-select: none;
        }

        /* ========================================
           BUTTON STYLING - COMPACT
           ======================================== */
        .btn-login {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-bottom: 16px;
            position: relative;
            overflow: hidden;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login.loading {
            pointer-events: none;
        }

        .btn-login .spinner {
            display: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .btn-login.loading .spinner {
            display: block;
        }

        .btn-login.loading .btn-text {
            display: none;
        }

        /* ========================================
           LINKS STYLING - COMPACT
           ======================================== */
        .auth-links {
            text-align: center;
        }

        .forgot-password {
            color: #667eea;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 8px;
            display: inline-block;
            transition: all 0.3s ease;
        }

        .forgot-password:hover {
            color: #764ba2;
            text-decoration: underline;
        }

        .register-link {
            color: #718096;
            font-size: 12px;
        }

        .register-link a {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .register-link a:hover {
            color: #764ba2;
        }

        /* ========================================
           RESPONSIVE DESIGN - MOBILE OPTIMIZED
           ======================================== */
        @media screen and (max-width: 768px) {
            body {
                padding: 12px;
            }

            .auth-container {
                padding: 20px;
                max-width: 280px;
                border-radius: 12px;
            }

            .company-name {
                font-size: 16px;
            }

            .water-icon {
                font-size: 28px;
            }

            .form-control {
                padding: 10px 14px 10px 36px;
                font-size: 14px;
            }

            .btn-login {
                padding: 10px;
                font-size: 13px;
            }
        }

        @media screen and (max-width: 480px) {
            body {
                padding: 10px;
            }

            .auth-container {
                padding: 16px;
                max-width: 260px;
                border-radius: 10px;
            }

            .auth-brand {
                margin-bottom: 16px;
            }

            .login-form {
                margin-top: 12px;
            }

            .form-group {
                margin-bottom: 14px;
            }

            .checkbox-wrapper {
                margin-bottom: 16px;
            }

            .btn-login {
                margin-bottom: 12px;
            }
        }

        /* ========================================
           ACCESSIBILITY
           ======================================== */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ========================================
           SUCCESS ANIMATION
           ======================================== */
        .success-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(72, 187, 120, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .success-animation.show {
            opacity: 1;
            pointer-events: all;
        }

        .success-icon {
            color: white;
            font-size: 48px;
            animation: successPulse 0.6s ease-out;
        }

        @keyframes successPulse {
            0% {
                transform: scale(0);
            }

            50% {
                transform: scale(1.2);
            }

            100% {
                transform: scale(1);
            }
        }