/* --- CONFIGURACIÓN GENERAL --- */
:root {
    --primary-color: #dc5712;
    --secondary-color: #b21f1f;
    --accent-color: #fdbb2d;
    --text-dark: #333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* --- BODY CENTRADO --- */
body.login-page-alt {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- LINKS --- */
a {
    text-decoration: none !important;
    color: inherit;
}

a:visited {
    color: inherit;
}

/* --- CONTENEDOR GENERAL (ANCHO CONTROLADO) --- */
.top-section,
.bottom-section {
    width: 100%;
    max-width: 420px;
}

/* --- SECCIÓN SUPERIOR --- */
.top-section {
    text-align: center;
    padding: 30px 25px 20px;
    color: var(--white);
}

.top-section .logo-top {
    display: none;
}


/* LOGO MÁS GRANDE */
.logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-top img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.top-section h1 {
    font-size: 34px;
    font-weight: 700;
}

.top-section p {
    font-size: 15px;
    opacity: 0.95;
}

/* --- SECCIÓN INFERIOR / TARJETA --- */
.bottom-section {
    background: var(--white);
    border-radius: 36px;
    padding: 130px 28px 35px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    position: relative;
}

.bottom-section::before {
    content: "";
    display: block;
    width: 350px;      
    height: 140px;  
    margin: -115px auto 10px; 
    background: url("../img/logo.png") no-repeat center;
    background-size: contain;
}


/* --- TARJETA LOGIN --- */
.login-card-full {
    width: 100%;
}

.login-card-full h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: center;
}

/* --- INPUTS --- */
.input-group-custom {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    padding: 15px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.input-group-custom i {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 12px;
}

.input-group-custom input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}

.input-group-custom input::placeholder {
    color: #999;
}

/* --- LINK OLVIDÉ CONTRASEÑA --- */
.forgot-link {
    text-align: right;
    margin-bottom: 18px;
}

.forgot-link a {
    font-size: 13px;
    color: var(--primary-color);
}

/* --- ERROR --- */
.error-msg-small {
    font-size: 13px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

/* --- BOTÓN LOGIN --- */
.btn-main-login {
    width: 100%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    color: var(--white);
    border: none;
    border-radius: 18px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-main-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- RESPONSIVE (DESKTOP) --- */
@media (min-width: 768px) {
    body.login-page-alt {
        flex-direction: column;
    }
}

/* --- LINK CREAR CUENTA --- */
.signup-link {
    text-align: center;
    margin-top: 22px;
}

.signup-link p {
    font-size: 14px;
    color: var(--text-dark);
}

.signup-link a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 4px;
}

.signup-link a:hover {
    text-decoration: underline;
}