﻿:root {
    --tp-black: #0a0a0a;
    --tp-black-2: #111827;
    --tp-orange: #f57c00;
    --tp-orange-2: #ff8a00;
    --tp-white: #ffffff;
    --tp-gray-100: #f8f9fa;
    --tp-gray-200: #e9ecef;
    --tp-gray-300: #d6d9de;
    --tp-gray-500: #6b7280;
    --tp-gray-700: #374151;
    --tp-text: #1f2937;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(245,124,0,.22), transparent 28%), radial-gradient(circle at bottom center, rgba(245,124,0,.18), transparent 24%), linear-gradient(135deg, #050505 0%, #0b1220 55%, #03112b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-shell {
    width: 100%;
    max-width: 1100px;
}

.login-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.login-hero {
    position: relative;
    min-height: 560px;
    background: linear-gradient(180deg, rgba(7, 18, 40, .65) 0%, rgba(245, 124, 0, .22) 100%), linear-gradient(135deg, rgba(245,124,0,.32) 0%, rgba(0,0,0,.50) 70%), url('/img/Login/login-bg.png') center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 42px 34px;
}

    .login-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(5,10,20,.35) 0%, rgba(245,124,0,.10) 45%, rgba(245,124,0,.22) 100%);
        pointer-events: none;
    }

.login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    color: #fff;
}

.login-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: .65rem;
    text-transform: uppercase;
}

.login-brand-line {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff, var(--tp-orange-2));
    margin-bottom: 1rem;
}

.login-hero-text {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .75rem;
}

.login-hero-subtext {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
    margin: 0;
}

.login-form-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
}

.login-form-wrap {
    width: 100%;
    max-width: 355px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-text);
    text-align: center;
    margin-bottom: .4rem;
}

.login-subtitle {
    text-align: center;
    color: var(--tp-gray-500);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 700;
    color: #111827;
    margin-bottom: .55rem;
    font-size: .98rem;
}

.input-group {
    margin-bottom: .4rem;
}

.input-group-text {
    background: #fff;
    border: 1px solid var(--tp-gray-300);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    color: var(--tp-gray-700);
    min-width: 48px;
    justify-content: center;
}

.form-control {
    height: 50px;
    border: 1px solid var(--tp-gray-300);
    border-radius: 0 12px 12px 0;
    padding: .85rem 1rem;
    font-size: .97rem;
    color: var(--tp-text);
    box-shadow: none;
}

    .form-control::placeholder {
        color: #9ca3af;
    }

    .form-control:focus {
        border-color: rgba(245,124,0,.65);
        box-shadow: 0 0 0 .2rem rgba(245,124,0,.14);
    }

.input-group:focus-within .input-group-text {
    border-color: rgba(245,124,0,.65);
    box-shadow: 0 0 0 .2rem rgba(245,124,0,.14);
    position: relative;
    z-index: 3;
}

.field-validation-error,
.validation-summary-errors,
.text-danger {
    color: #dc3545 !important;
    font-size: .84rem;
}

.validation-summary-valid {
    display: none;
}

.alert {
    border-radius: 14px;
    font-size: .94rem;
}

.form-check {
    margin: 1rem 0 1.4rem 0;
}

.form-check-input {
    border-color: #cfd4dc;
    box-shadow: none;
}

    .form-check-input:checked {
        background-color: var(--tp-orange);
        border-color: var(--tp-orange);
    }

.form-check-label {
    color: #374151;
    font-size: .98rem;
}

.btn-login {
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tp-orange-2) 0%, var(--tp-orange) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(245,124,0,.24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .btn-login:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 18px 28px rgba(245,124,0,.30);
        filter: brightness(1.02);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-footer {
    text-align: center;
    color: var(--tp-gray-500);
    font-size: .95rem;
    margin-top: 1rem;
}

.login-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

    .login-link:hover {
        text-decoration: underline;
        color: #0a58ca;
    }

/* Turnstile */
.cf-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

    .cf-turnstile > div {
        max-width: 100%;
    }

/* Tablet y abajo */
@media (max-width: 991.98px) {
    body {
        align-items: flex-start;
        padding: 20px;
    }

    .login-shell {
        max-width: 560px;
        margin: 0 auto;
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 24px;
    }

    .login-hero {
        min-height: 220px;
        padding: 28px 24px;
        align-items: flex-end;
    }

    .login-hero-content {
        max-width: 100%;
    }

    .login-brand {
        font-size: 1.55rem;
    }

    .login-hero-text {
        font-size: 1.12rem;
        margin-bottom: .55rem;
    }

    .login-hero-subtext {
        font-size: .95rem;
        line-height: 1.55;
    }

    .login-form-panel {
        padding: 30px 24px 28px;
    }

    .login-form-wrap {
        max-width: 100%;
    }
}

/* Móvil */
@media (max-width: 575.98px) {
    body {
        padding: 12px;
        min-height: 100vh;
    }

    .login-shell {
        max-width: 100%;
    }

    .login-card {
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(0,0,0,.28);
    }

    .login-hero {
        min-height: 180px;
        padding: 22px 18px;
        background-position: center;
    }

    .login-brand {
        font-size: 1.2rem;
        margin-bottom: .45rem;
    }

    .login-brand-line {
        width: 56px;
        margin-bottom: .8rem;
    }

    .login-hero-text {
        font-size: .98rem;
        line-height: 1.4;
    }

    .login-hero-subtext {
        font-size: .88rem;
        line-height: 1.5;
    }

    .login-form-panel {
        padding: 22px 16px 20px;
    }

    .login-form-wrap {
        max-width: 100%;
    }

    .login-title {
        font-size: 1.55rem;
        margin-bottom: .3rem;
    }

    .login-subtitle {
        font-size: .92rem;
        margin-bottom: 1.35rem;
        line-height: 1.5;
    }

    .form-label {
        font-size: .93rem;
        margin-bottom: .45rem;
    }

    .input-group-text {
        min-width: 44px;
    }

    .form-control {
        height: 46px;
        font-size: .95rem;
        padding: .72rem .9rem;
    }

    .form-check {
        margin: .9rem 0 1.2rem 0;
    }

    .form-check-label {
        font-size: .93rem;
    }

    .btn-login {
        height: 50px;
        font-size: .96rem;
    }

    .login-link {
        font-size: .88rem;
    }

    .login-footer {
        font-size: .86rem;
        margin-top: .85rem;
    }

    .alert {
        font-size: .88rem;
        padding: .8rem .95rem;
    }

    /* Turnstile más amigable en móvil */
    .cf-turnstile {
        justify-content: flex-start;
        transform-origin: top left;
    }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
    .login-hero {
        min-height: 165px;
        padding: 18px 16px;
    }

    .login-title {
        font-size: 1.42rem;
    }

    .login-subtitle {
        font-size: .89rem;
    }

    .form-control {
        height: 44px;
        font-size: .93rem;
    }

    .btn-login {
        height: 48px;
    }

    .cf-turnstile {
        transform: scale(.92);
    }
}
