* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

/* CONTENEDOR */
.main {
    display: flex;
    height: 100vh;
}

/* IZQUIERDA */
.left {
    width: 60%;
    background: url('../img/bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

/* OVERLAY PRO */
.left::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0,0,0,0.7), rgba(0,102,204,0.6));
}

/* TEXTO */
.overlay {
    position: relative;
    z-index: 2;
    color: white;
    padding: 80px;
    animation: fadeLeft 1s ease;
}

.overlay h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.overlay h1 span {
    color: #00c6ff;
}

.overlay p {
    margin-top: 20px;
    font-size: 18px;
    opacity: 0.85;
}

/* DERECHA */
.right {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background:
        radial-gradient(circle at 85% 12%, rgba(0, 153, 255, .09), transparent 28%),
        #fff;
}

/* GLASS EFECT REAL */
.right::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    background: rgba(255,255,255,0.38);
}

/* LOGIN */
.login-box {
    position: relative;
    z-index: 2;
    width: min(84%, 460px);
    max-width: 460px;
    text-align: center;
    animation: fadeRight 1s ease;
    padding: 38px 42px 34px;
    border: 1px solid rgba(13, 63, 120, .10);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 24px 65px rgba(18, 55, 91, .12);
}

/* LOGO */
.logo {
    display: block;
    width: min(220px, 76%);
    height: auto;
    margin: 0 auto;
}

.login-brand {
    position: relative;
    padding: 4px 0 25px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5edf5;
}

.login-brand-accent {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d3f78, #00aee9);
}

/* TITULOS */
.login-box h2 {
    margin: 3px 0 5px;
    color: #102f52;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.login-heading {
    margin-bottom: 26px;
}

.login-eyebrow {
    color: #087bd1;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.subtitle {
    color: #65778a;
    margin: 0;
    font-size: 1rem;
}

/* INPUT GROUP */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border-radius: 10px;
    border: 1px solid #d8e2ec;
    background: #fbfdff;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #0099ff;
    box-shadow: 0 0 10px rgba(0,153,255,0.2);
}

/* BOTON */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0066cc, #00c6ff);
    border: none;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.extra {
    margin-top: 15px;
    text-align: center;
}

.extra a {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
}

.extra a:hover {
    text-decoration: underline;
}

.success {
    color: green;
    margin-bottom: 10px;
}

/* ERROR */
.error {
    color: red;
    margin-bottom: 10px;
}

@media (max-width: 1050px) {
    .left { width: 52%; }
    .right { width: 48%; }
    .overlay { padding: 50px; }
    .overlay h1 { font-size: 40px; }
}

@media (max-width: 760px) {
    body { height: auto; min-height: 100vh; overflow: auto; }
    .main { min-height: 100vh; height: auto; }
    .left { display: none; }
    .right { width: 100%; min-height: 100vh; padding: 28px 0; }
    .login-box { width: min(90%, 460px); padding: 32px 26px; }
}

/* ANIMACIONES */
@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
