:root {
            --primary: #137547;
            --primary-dark: #0a3622;
            --primary-light: #e8f5e9;
            --accent: #ffd700;
            --accent-dark: #e6c200;
            --text: #2d3748;
            --text-light: #718096;
            --bg: #f8fafc;
            --card-bg: rgba(255, 255, 255, 0.98);
            --success: #38a169;
            --error: #e53e3e;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        }

        body {
            
            background-size: cover;
            min-height: 100dvh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow-x: hidden;
            padding: 16px;
        }

        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(19, 117, 71, 0.9) 0%,
                rgba(10, 54, 34, 0.95) 100%
            );
            z-index: 0;
        }

        .particle-container {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }

        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 15s linear infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(100dvh) scale(0);
                opacity: 0;
            }

            10% {
                opacity: 0.3;
            }

            90% {
                opacity: 0.3;
            }

            100% {
                transform: translateY(-20vh) scale(1);
                opacity: 0;
            }
        }

        .login-container {
            width: 100%;
            max-width: 400px;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            position: relative;
            z-index: 2;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .login-header {
            background: linear-gradient(
                135deg,
                var(--primary) 0%,
                var(--primary-dark) 100%
            );
            color: white;
            padding: 20px;
            text-align: center;
            position: relative;
            clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
        }

        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 24px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
            transition: all 0.4s ease;
        }

        .logo:hover .logo-icon {
            transform: rotate(15deg) scale(1.05);
        }

        .logo-text {
            font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
            font-weight: 900;
            font-size: 24px;
            letter-spacing: 1px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .logo-subtext {
            font-size: 13px;
            opacity: 0.9;
            margin-top: 4px;
            font-weight: 400;
        }

        .login-body {
            padding: 25px;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text);
            font-size: 14px;
            padding-left: 5px;
        }

        .input-field {
            width: 100%;
            padding: 14px 16px 14px 46px;
            border: 2px solid var(--primary-light);
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: var(--bg);
            color: var(--text);
            font-weight: 500;
            -webkit-appearance: none;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(19, 117, 71, 0.15);
            background: white;
        }

        .input-icon {
            position: absolute;
            left: 12px;
            top: 65%;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 16px;
            pointer-events: none;
        }

        .input-field:focus + .input-icon {
            color: var(--primary);
            transform: scale(1.1);
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 65%;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 16px;
            cursor: pointer;
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        .btn-login {
            width: 100%;
            padding: 15px;
            background: linear-gradient(
                135deg,
                var(--primary) 0%,
                var(--primary-dark) 100%
            );
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(19, 117, 71, 0.3);
            z-index: 1;
        }

        .btn-login::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            transition: 0.5s;
            z-index: -1;
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(19, 117, 71, 0.4);
        }

        .btn-login:hover::before {
            left: 100%;
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 25px 0;
            color: var(--text-light);
            font-size: 13px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: linear-gradient(
                to right,
                transparent,
                var(--primary-light),
                transparent
            );
        }

        .divider-text {
            padding: 0 12px;
        }

        .signup-options {
            display: flex;
            gap: 12px;
        }

        .btn-signup {
            flex: 1;
            padding: 13px;
            border: 2px solid var(--primary-light);
            border-radius: 12px;
            background: white;
            color: var(--text);
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-signup:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .forgot-password {
            display: block;
            text-align: right;
            margin-top: -15px;
            margin-bottom: 20px;
            font-size: 13px;
        }

        .forgot-password a {
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .forgot-password a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        .footer {
            text-align: center;
            margin-top: 25px;
            font-size: 12px;
            color: var(--text-light);
        }

        .footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .footer a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* Status messages */
        .status-message {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeIn 0.4s ease-out;
        }

        .status-success {
            background: rgba(56, 161, 105, 0.1);
            color: var(--success);
            border: 1px solid rgba(56, 161, 105, 0.3);
        }

        .status-error {
            background: rgba(229, 62, 62, 0.1);
            color: var(--error);
            border: 1px solid rgba(229, 62, 62, 0.3);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-container {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
        }

        .input-group {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
        }

        .input-group:nth-child(1) {
            animation-delay: 0.1s;
        }

        .input-group:nth-child(2) {
            animation-delay: 0.2s;
        }

        .btn-login {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
            animation-delay: 0.3s;
        }

        .divider {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
            animation-delay: 0.4s;
        }

        .signup-options {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
            animation-delay: 0.5s;
        }

        .footer {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
            animation-delay: 0.6s;
        }

        /* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 12px;
        align-items: flex-start;
    }

    .login-container {
        margin-top: 20px;
        max-width: 100%;
        border-radius: 16px;
    }

    .login-header {
        padding: 20px 16px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-subtext {
        font-size: 12px;
    }

    .login-body {
        padding: 20px 16px;
    }

    .signup-options {
        flex-direction: column;
    }

    .input-field {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 16px 16px 16px 46px;
    }

    .btn-login, .btn-signup {
        padding: 16px;
    }
}

        @media (max-width: 350px) {
            .logo-text {
                font-size: 18px;
            }
            
            .logo-subtext {
                font-size: 11px;
            }
            
            .input-field {
                font-size: 14px;
            }
            
            .btn-login, .btn-signup {
                font-size: 14px;
            }
            
            .divider-text {
                font-size: 11px;
            }
        }

        /* Very small devices (e.g., iPhone 5/SE) */
        @media (max-width: 320px) {
            .login-header {
                padding: 16px 12px;
            }
            
            .login-body {
                padding: 16px 12px;
            }
            
            .logo-icon {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
            
            .footer {
                font-size: 11px;
            }
        }

        /* Tablet and larger mobile devices */
        @media (min-width: 481px) and (max-width: 768px) {
            .login-container {
                max-width: 90%;
            }
        }

        /* Landscape mode for mobile */
        @media (max-height: 600px) and (orientation: landscape) {
            body {
                align-items: flex-start;
                padding-top: 30px;
                padding-bottom: 30px;
            }
            
            .login-container {
                max-width: 500px;
            }
            
            .login-body {
                padding: 20px;
            }
            
            .input-group {
                margin-bottom: 15px;
            }
            
            .divider {
                margin: 15px 0;
            }
        }