﻿/* =============================================
   LOGIN.CSS — Mesa de Partes Virtual
   ============================================= */

:root {
    --blue-dark: #0a2463;
    --blue-mid: #1d4ed8;
    --blue-light: #3b82f6;
    --blue-pale: #eff6ff;
    --gray-bg: #f0f2f5;
    --gray-border: #dde3ec;
    --gray-muted: #6b7a99;
    --text-main: #0f172a;
    --text-sub: #475569;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 8px 32px rgba(10, 36, 99, 0.10);
    --shadow-btn: 0 2px 8px rgba(29, 78, 216, 0.25);
    --transition: 0.2s ease;
}

/* ── RESET BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--gray-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
/*    align-items: center;*/
    justify-content: center;
    padding: 24px;
}

/* ── WRAPPER ── */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── CARD ── */
.login-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── HEADER ── */
.card-header {
    padding: 20px 28px 18px;
    border-bottom: 1px solid var(--gray-border);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

    .header-brand img {
        height: 44px;
        width: auto;
        object-fit: contain;
    }

.header-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-dark);
    letter-spacing: 0.02em;
    display: block;
}

.brand-system {
    font-size: 15px;
    font-weight: 500;
    color: var(--blue-mid);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
}

.brand-date {
    font-size: 15px;
    color: var(--gray-muted);
    font-weight: 400;
    display: block;
}

/* ── BODY ── */
.card-body {
    padding: 26px 28px 12px;
}

.section-hint {
    font-size: 14px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

    .section-hint .material-symbols-rounded {
        font-size: 16px;
        color: var(--blue-light);
    }

/* ── FIELDS ── */
.field {
    position: relative;
    margin-bottom: 14px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    background: var(--white);
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .form-input::placeholder {
        color: #a0aec0;
    }

    .form-input:focus {
        border-color: var(--blue-light);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--gray-muted);
    pointer-events: none;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--gray-muted);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}

    .toggle-eye:hover {
        color: var(--blue-mid);
    }

/* ── BUTTONS ── */
.field-action {
    margin-bottom: 10px;
}

.btn {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
}

    .btn:active {
        transform: scale(0.98);
    }

    .btn .material-symbols-rounded {
        font-size: 18px;
    }

/* Primario */
.btn-primary {
    background: var(--blue-mid);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

    .btn-primary:hover {
        background: var(--blue-dark);
        box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    }

/* Secundario */
.btn-secondary {
    background: transparent;
    color: var(--blue-mid);
    border: 1.5px solid var(--blue-light);
}

    .btn-secondary:hover {
        background: var(--blue-light);
        color: var(--white);
        border-color: var(--blue-light);
    }

/* ── REGISTER LINK ── */
.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
    margin: 8px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .register-link a {
        color: var(--blue-mid);
        font-weight: 500;
        text-decoration: none;
        transition: color var(--transition);
    }

        .register-link a:hover {
            color: var(--blue-dark);
            text-decoration: underline;
        }

/* ── FOOTER ── */
.card-footer {
    border-top: 1px solid var(--gray-border);
    padding: 14px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    body {
        padding: 16px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .card-header,
    .card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-footer {
        padding: 12px 20px;
    }

    .login-card {
        border-radius: var(--radius-md);
    }
}
