
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }

        /* 👇 Aumentamos el padding-top para evitar que el header tape el formulario */
        main {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: flex-start; /* 👈 centrar horizontalmente, pero alinear arriba para mejor control */
            padding: 100px 20px 40px; /* ↑↑↑ más espacio superior */
            background-color: #f5f9fc;
        }

        .login-card {
            background: white;
            padding: 32px;
            border-radius: 16px;
            box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
            width: 100%;
            max-width: 420px;
            text-align: center;
        }

        .login-card h2 {
            color: #003366;
            font-weight: 700;
            margin-bottom: 24px;
            font-size: 22px;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #003366;
            font-size: 16px;
            z-index: 1;
        }

        .input-group input {
            width: 105%;
            padding: 14px 48px 14px 48px;
            border: 1px solid #c2d6e8;
            border-radius: 12px;
            background-color: #f8fbff;
            font-size: 15px;
            outline: none;
            box-sizing: border-box;
            /* 👇 Asegura que el texto no toque los íconos */
            caret-color: #005fa3;
        }

        .input-group input:focus {
            border-color: #005fa3;
            background-color: #fff;
            box-shadow: 0 0 0 3px rgba(0, 95, 163, 0.1);
        }

        .toggle-password {
            position: absolute;
            right: 25px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #005fa3;
            font-size: 16px;
            z-index: 2;
            /* 👇 Hace que el ojo se sienta "dentro" del input */
            pointer-events: auto;
        }

        .btn-login {
            width: 100%;
            padding: 14px;
            background: #005fa3;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 16px; /* un poco más de separación */
        }

        .btn-login:hover {
            background: #004a80;
        }

        .back-link {
            display: block;
            margin-top: 24px;
            color: #005fa3;
            text-decoration: none;
            font-size: 14px;
        }

        .back-link:hover {
            text-decoration: underline;
        }