body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            min-height: 100vh;
        }
        
        .title-container {
            position: relative;
            display: inline-block;
        }
        
        .title-hat-icon {
            position: absolute;
            height: 5.5rem;
            width: auto;
            transform: rotate(-15deg);
            top: -2.5rem;
            left: -1.4rem;
            z-index: 10;
            filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
        }
        
        .title-text {
            font-family: 'Orbitron', sans-serif;
            position: relative;
            display: inline-block;
        }
        
        .gradient-text {
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .glass-card {
            background: rgb(15, 23, 42);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
        }
        
        .flip-card {
            perspective: 1000px;
        }
        
        .flip-card-inner {
            transition: transform 0.6s;
            transform-style: preserve-3d;
            position: relative;
            min-height: 520px; /* Ajuste para igualar altura */
        }
        
        .flip-card.flipped .flip-card-inner {
            transform: rotateY(180deg);
        }
        
        .flip-card-front, .flip-card-back {
            backface-visibility: hidden;
            position: absolute;
            width: 100%;
            height: auto;
            top: 0;
            left: 0;
        }
        
        .flip-card-back {
            transform: rotateY(180deg);
        }
        
        .input-field {
            transition: all 0.3s ease;
        }
        
        .input-field:focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
        }
        
        .error-message {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .error-message.show {
            max-height: 2rem;
        }
        
        .logo-login {
            height: 200px;
            margin-bottom: 1.5rem; /* Margen inferior aumentado */
        }
        
        /* Estilos para el modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 100;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.7);
        }
        
        .modal-content {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            margin: 5% auto;
            padding: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            width: 80%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
        }
        
        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close-modal:hover {
            color: white;
        }
        
        .terms-link {
            color: #3b82f6;
            cursor: pointer;
            text-decoration: underline;
        }
        
        .terms-link:hover {
            color: #2563eb;
        }
        
        .terms-checkbox {
            display: flex;
            align-items: center;
            margin-top: 1rem;
        }
        
        .terms-checkbox input {
            margin-right: 0.5rem;
        }
        
        #terms-error {
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: none;
        }


           /* Ajustes para móviles */
@media (max-width: 768px) {
    .title-hat-icon {
        height: 3em;
        top: -1.3em;
        left: -0.5rem;
    }
}

.error-message.show {
    max-height: 5rem !important;
}
    