@charset "utf-8";
/* CSS Document - Modern Login Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.formulario {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 15px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.formulario::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.formulario:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 20px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logo {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h3, h4 {
    color: #1f2937;
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
}

h3 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

h4 {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 32px;
}

fieldset {
    border: none;
    margin-bottom: 24px;
    padding: 0;
}

legend {
    display: none;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.Input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #1f2937;
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.Input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.Input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.Input:hover:not(:focus) {
    border-color: #d1d5db;
    background: rgba(255, 255, 255, 0.9);
}

/* Floating label effect */
.input-group.floating-label {
    position: relative;
}

.input-group.floating-label .Input {
    padding-top: 24px;
    padding-bottom: 8px;
}

.input-group.floating-label label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
}

.input-group.floating-label .Input:focus + label,
.input-group.floating-label .Input:not(:placeholder-shown) + label {
    transform: translateY(-8px) scale(0.75);
    color: #667eea;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.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: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.3),
        0 6px 12px rgba(102, 126, 234, 0.2);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 
        0 5px 15px rgba(102, 126, 234, 0.3),
        0 3px 8px rgba(102, 126, 234, 0.2);
}

.espaciado {
    margin-top: 24px;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Loading state */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 750px) {
    body {
        padding: 16px;
    }
    
    .formulario {
        padding: 32px 24px;
        max-width: 100%;
        border-radius: 20px;
    }
    
    .logo {
        height: 60px;
        margin-bottom: 24px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    h4 {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .Input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .formulario {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .formulario {
        background: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    h3 {
        color: #f9fafb;
    }
    
    h4 {
        color: #d1d5db;
    }
    
    .Input {
        background: rgba(55, 65, 81, 0.8);
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .Input::placeholder {
        color: #9ca3af;
    }
    
    .Input:focus {
        background: rgba(55, 65, 81, 0.95);
    }
}


