/* ── style.css — Página de Login ─────────────────────────────────────────── */

:root {
    --negro:         #1a1a1a;
    --negro-2:       #222222;
    --blanco:        #ffffff;
    --naranja:       #FF9600;
    --naranja-hover: #e68600;
    --naranja-light: rgba(255, 150, 0, 0.12);
    --gris-oscuro:   #222222;
    --gris-medio:    #333333;
    --gris-borde:    #2a2a2a;
    --gris-texto:    #999999;
    --rojo:          #ff4d4d;
    --radius:        12px;
    --radius-sm:     8px;
    --transition:    0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a;
    background-color: var(--negro);
    color: #ffffff;
    color: var(--blanco);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout dos columnas ─────────────────────────────────────────────────── */

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ── Columna izquierda: branding ─────────────────────────────────────────── */

.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 40%, #221800 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,150,0,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,150,0,0.3), transparent);
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
}

/* Logo agencia */
.brand-logo {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
    border-radius: 10px;
}

.brand-logo-fallback {
    display: none;
    width: 56px;
    height: 56px;
    background-color: #FF9600;
    background-color: var(--naranja);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    color: var(--negro);
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    color: var(--blanco);
    margin-bottom: .5rem;
    line-height: 1.2;
}

.brand-tagline {
    font-size: .95rem;
    color: #999999;
    color: var(--gris-texto);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: #ffffff;
    color: var(--blanco);
    opacity: .8;
}

.brand-feature svg {
    color: #FF9600;
    color: var(--naranja);
    flex-shrink: 0;
}

/* ── Columna derecha: formulario ─────────────────────────────────────────── */

.login-form-side {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #222222;
    background-color: var(--gris-oscuro);
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .375rem;
}

.login-header p {
    font-size: .9rem;
    color: #999999;
    color: var(--gris-texto);
    line-height: 1.5;
}

/* Alerta de error */
.alert {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background: rgba(255,77,77,.12);
    border: 1px solid rgba(255,77,77,.3);
    color: #ff7070;
}

/* Formulario */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #999999;
    color: var(--gris-texto);
    margin-bottom: .5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    color: var(--gris-texto);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: .875rem 1rem .875rem 2.75rem;
    background-color: #1a1a1a;
    background-color: var(--negro);
    border: 1px solid #2a2a2a;
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    color: var(--blanco);
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.input-wrapper input::placeholder {
    color: #555555;
}

.input-wrapper input:focus {
    border-color: #FF9600;
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(255, 150, 0, 0.12);
    box-shadow: 0 0 0 3px var(--naranja-light);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999999;
    color: var(--gris-texto);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .2s ease;
    line-height: 1;
}

.toggle-password:hover {
    color: #FF9600;
    color: var(--naranja);
}

/* Botón login */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    width: 100%;
    padding: 1rem;
    background-color: #FF9600;
    background-color: var(--naranja);
    color: #1a1a1a;
    color: var(--negro);
    border: none;
    border-radius: 8px;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    letter-spacing: .02em;
    -webkit-appearance: none;
    appearance: none;
}

.btn-login:hover {
    background-color: #e68600;
    background-color: var(--naranja-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255,150,0,.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: #999999;
    color: var(--gris-texto);
}

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .login-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-brand {
        padding: 2.5rem 1.5rem;
        flex: none;
    }

    .login-brand::after {
        display: none;
    }

    .login-form-side {
        width: 100%;
        padding: 2rem 1.5rem 3rem;
    }

    .brand-features {
        display: none;
    }
}
