:root {
            --primary: #10b981; /* Verde esmeralda */
            --primary-hover: #059669;
            --text-main: #1e293b;
            --text-label: #475569;
            --bg-overlay: rgba(30, 41, 59, 0.7);
            --white: #ffffff;
            --border: #e2e8f0;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        .login-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            width: 100%;
            background: linear-gradient(var(--bg-overlay), var(--bg-overlay)),
                        url('../../img/LogoPeajes.png') center/cover no-repeat;
            padding: 20px;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.22);
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 400px;
            text-align: center;
        }

        h2 {
            color: #ffffff;
            font-size: 1.75rem;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .subtitle {
            color: rgba(255, 255, 255, 0.75);
            font-size: 0.9rem;
            margin-bottom: 24px;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .input-group {
            position: relative;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        label {
            font-size: 0.85rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
            margin-left: 4px;
        }

        .input-wrapper {
            position: relative;
            width: 100%;
        }

        input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid rgba(255, 255, 255, 0.25);
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            outline: none;
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        input::placeholder { color: rgba(255,255,255,0.45); }

        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset;
            -webkit-text-fill-color: #ffffff;
            caret-color: #ffffff;
            border-color: rgba(255,255,255,0.25);
            transition: background-color 9999s ease-in-out 0s;
        }

        input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
        }

        /* Icono de Ver/Ocultar */
        .toggle-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #94a3b8;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: none;
            border: none;
            padding: 0;
            transition: color 0.2s;
        }

        .toggle-btn:hover {
            color: var(--primary);
        }

        .toggle-btn svg {
            width: 20px;
            height: 20px;
            pointer-events: none;
        }

        button[type="submit"] {
            background-color: var(--primary);
            color: var(--white);
            padding: 14px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
            margin-top: 8px;
        }

        button[type="submit"]:hover {
            background-color: var(--primary-hover);
        }

        button[type="submit"]:disabled {
            background-color: #a7f3d0;
            cursor: not-allowed;
        }

        #msg {
            margin-top: 20px;
            font-size: 0.875rem;
            min-height: 20px;
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 30px 20px;
            }
        }
