/* ============================================
   LOGIN - ESTILOS PROFESIONALES
   Portal de Proveedores - ZugaTech
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #0F6D95 0%, #002055 100%);
    --secondary-gradient: linear-gradient(135deg, #0F6D95 0%, #55595c 100%);
    --accent-gradient: linear-gradient(135deg, #1a8cb8 0%, #0F6D95 100%);
    --shadow-lg: 0 20px 60px rgba(0, 32, 85, 0.15);
    --shadow-md: 0 10px 30px rgba(0, 32, 85, 0.1);
    --shadow-sm: 0 5px 15px rgba(0, 32, 85, 0.08);
    --color-primary: #0F6D95;
    --color-secondary: #002055;
    --color-gray: #55595c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0F6D95 0%, #002055 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 109, 149, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.login-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.logo-container {
    padding: 5px 0px 0px;
    text-align: center;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.login-header {
    text-align: center;
    padding: 20px 40px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    font-family: 'Poppins', sans-serif;
}

.login-header p {
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.login-form {
    padding: 5px 30px 5px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.01em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.form-control:focus {
    outline: none;
    border-color: #0F6D95;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 109, 149, 0.15);
}

.form-control:focus + .input-icon,
.form-control:not(:placeholder-shown) + .input-icon {
    color: #0F6D95;
    transform: translateY(-50%) scale(1.1);
}

.form-control::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.btn-login {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 109, 149, 0.4);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.03em;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 109, 149, 0.5);
    background: var(--accent-gradient);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login i {
    font-size: 18px;
}

.forgot-password {
    text-align: right;
    margin-top: 12px;
}

.forgot-password a {
    color: #0F6D95;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.forgot-password a:hover {
    color: #002055;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

.footer-info {
    text-align: center;
    padding: 10px 0px 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.footer-text a {
    color: #0F6D95;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.footer-text a:hover {
    color: #002055;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
}

.footer-links a {
    color: #55595c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0F6D95;
}

.separator {
    color: #cbd5e1;
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s ease-in-out;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
    }

    .logo-container,
    .login-header,
    .login-form,
    .footer-info {
        padding-left: 24px;
        padding-right: 24px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    .form-control {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }

    .footer-links {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .logo-container img {
        max-width: 140px;
    }

    .login-header h1 {
        font-size: 22px;
    }
}
