﻿/* ==========================================================================
   Pantalla de Acceso - Veterinaria Alcántara
   Identidad Oficial: Azul (#007BB8) | Naranja (#E95D0F) | Amarillo (#F5BA00)
   ========================================================================== */

:root {
    --alcantara-blue: #007BB8;
    --alcantara-blue-hover: #006496;
    --alcantara-orange: #E95D0F;
    --alcantara-yellow: #F5BA00;
    --surface-bg: #f5f7fa;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
}

body.login-page-alcantara {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 50% 18%, #ffffff 0%, #eef3f7 70%, #dfe7ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor tipo Tarjeta de Seguridad */
.login-card-alcantara {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 123, 184, 0.12);
    box-shadow: 0 16px 40px rgba(0, 55, 85, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Barra superior tricolor corporativa inspirada en el logo */
.brand-top-stripe {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, var(--alcantara-yellow) 0%, var(--alcantara-orange) 45%, var(--alcantara-blue) 100%);
}

/* Cabecera institucional */
.login-header-alcantara {
    padding: 34px 28px 18px 28px;
    text-align: center;
    background-color: #ffffff;
}

.login-brand-logo {
    max-height: 68px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.login-system-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.login-system-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Cuerpo del formulario */
.login-body-alcantara {
    padding: 24px 32px 30px 32px;
}

.form-label-alcantara {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Inputs estilizados con icono guía */
.input-wrapper-alcantara {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-lead {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-field-alcantara {
    width: 100%;
    height: 48px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 42px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

    .input-field-alcantara:focus {
        background-color: #ffffff;
        border-color: var(--alcantara-blue);
        box-shadow: 0 0 0 3.5px rgba(0, 123, 184, 0.16);
        outline: none;
    }

.input-wrapper-alcantara:focus-within .input-icon-lead {
    color: var(--alcantara-blue);
}

/* Botón alternar visibilidad de contraseña */
.btn-toggle-eye {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    padding: 8px 10px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

    .btn-toggle-eye:hover {
        color: var(--alcantara-blue);
    }

/* Mensajes de error */
.alert-alcantara-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

/* Botón principal de acceso */
.btn-submit-alcantara {
    width: 100%;
    height: 48px;
    background-color: var(--alcantara-blue);
    border: 1px solid var(--alcantara-blue);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 123, 184, 0.32);
    transition: all 0.2s ease;
    margin-top: 10px;
}

    .btn-submit-alcantara:hover {
        background-color: var(--alcantara-blue-hover);
        border-color: var(--alcantara-blue-hover);
        box-shadow: 0 6px 18px rgba(0, 123, 184, 0.42);
        transform: translateY(-1px);
    }

    .btn-submit-alcantara:active {
        transform: translateY(0);
    }

/* Pie de tarjeta */
.login-footer-alcantara {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 14px 20px;
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
}

.badge-sucursal {
    background-color: #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}
