﻿* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    position: relative;
}

/* VIDEO FONDO */

.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -3;
}

/* CAPA OSCURA */

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -2;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.login-panel {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(31, 41, 51, 0.12);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #0b5fff;
    color: #ffffff;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: 24px;
}

p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.75);
}

.login-form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    background: rgba(255,255,255,0.12);
    color: white;
}
    input::placeholder {
        color: rgba(255,255,255,0.55);
    }

    input:focus {
        outline: 2px solid #84b6f4;
        border-color: #0b5fff;
    }

button {
    border: 0;
    border-radius: 6px;
    padding: 12px 16px;
    background: #0b5fff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    button:disabled {
        opacity: 0.7;
        cursor: wait;
    }

.message {
    min-height: 20px;
    color: #b42318;
    font-size: 14px;
}
