/**
 * ESTILOS DE LOGIN - DIGITAL SMART
 * Diseño moderno blanco y rojo
 */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffe5e8 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-body::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 20px 60px rgba(230, 57, 70, 0.2),
        0 0 0 1px rgba(230, 57, 70, 0.05);
    animation: slideUp 0.6s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
    }
}

.logo i {
    font-size: 36px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    margin-top: 32px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-control {
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-size: 15px;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form .form-control:hover {
    border-color: #d0d0d0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(230, 57, 70, 0.1),
        0 6px 16px rgba(230, 57, 70, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.login-form .form-control::placeholder {
    color: #b8b8b8;
    font-weight: 400;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.toggle-password:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.demo-credentials {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    padding: 18px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 15px;
    border: 2px solid rgba(230, 57, 70, 0.1);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.08);
}

.demo-credentials code {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.version {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo i {
        font-size: 32px;
    }
}
