@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:       #1a3a5c;
    --primary-light: #2457a0;
    --accent:        #f4a020;
    --accent-dark:   #d4870a;
    --surface:       #ffffff;
    --text:          #1e2a38;
    --text-muted:    #5a6e85;
}

/* ───────────────── BODY ───────────────── */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ───────────────── VIDEO FONDO ───────────────── */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}



/* ───────────────── CARD ───────────────── */
.card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(0,0,0,.04),
        0 20px 60px rgba(0,0,0,.35);
    padding: 52px 48px 44px;
    width: 100%;
    max-width: 460px;
    animation: cardIn .55s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ───────────────── BRAND ───────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,58,92,.3);
}

.brand-text h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .04em;
}

.brand-text span {
    font-size: .72rem;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ───────────────── HEADING ───────────────── */
.heading h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.heading p {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--text-muted);
}

/* ───────────────── DIVIDER ───────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dde5f0, transparent);
    margin: 24px 0;
}

/* ───────────────── FORM ───────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid #dde5f0;
    border-radius: 10px;
    font-size: .95rem;
    background: #f8fafd;
    transition: .2s;
}

.form-control:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36,87,160,.12);
    outline: none;
}

/* ───────────────── BOTONES ───────────────── */
.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26,58,92,.3);
    transition: .2s;
    margin-top: 6px;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary,
.btn-accent {
    flex: 1;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: .2s;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid #c5d6ee;
}

.btn-secondary:hover {
    background: #eef4ff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
}

.btn-accent:hover {
    transform: translateY(-2px);
}

/* ───────────────── ACTION ROW ───────────────── */
.action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

/* ───────────────── LINKS ───────────────── */
.forgot {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

/* ───────────────── TERMS ───────────────── */
.terms-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef2f8;
    font-size: .85rem;
    color: var(--text-muted);
}