@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #317EFB;
    --primary-alt: #4c6bb0;
    /* Original brand color kept for legacy feel */
    --accent: #ff4757;
    --dark: #2f3542;
    --light: #f1f2f6;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Soft gradient background */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--dark);
    line-height: 1.6;
}

/* --- Component: Login/Register Section --- */
.login-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    /* Optional sleek background pattern or gradient */
    background: radial-gradient(circle at top right, #eef2f3, #8e9eab);
}

.login-container {
    background: var(--glass-bg);
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- Typography --- */
h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
}

/* Logo handling */
.logo {
    display: block;
    width: 100px;
    /* Adjusted size */
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Title Styling */
h1.titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-align: center;
    background: transparent;
}

h2.titulo {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #a4b0be;
    margin: 2rem 0 1.2rem;
    background: transparent;
    /* Remove old bg */
    letter-spacing: 1.5px;
    text-align: center;
    position: relative;
}

h2.titulo::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    opacity: 0.5;
}

/* Color Classes Overrides */
.resal {
    color: var(--primary);
    font-weight: 700;
}

.trojo {
    color: var(--accent);
}

.tnegro {
    color: var(--dark);
}

.fblan,
.tazul {
    background: transparent;
}

/* --- Forms --- */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 1.2rem;
    position: relative;
}

/* Inputs */
input.inp,
select.inp,
.campo {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--dark);
    background: #f7f9fc;
    border: 2px solid transparent;
    /* Cleaner look */
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin: 0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

input.inp:focus,
select.inp:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(49, 126, 251, 0.15);
}

input.inp::placeholder {
    color: #bdc3c7;
    font-weight: 400;
}

/* Submit & Buttons */
input[type="submit"].inp,
.boton {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark 100%));
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 1.5rem !important;
    box-shadow: 0 8px 15px rgba(49, 126, 251, 0.25);
    border: none;
}

input[type="submit"].inp:hover,
.boton:hover {
    background: var(--primary-alt);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(49, 126, 251, 0.35);
}

input[type="submit"].inp:active {
    transform: translateY(1px);
    box-shadow: 0 4px 6px rgba(49, 126, 251, 0.2);
}

/* --- Helpers --- */
.centrar {
    text-align: center;
}

.scapa {
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    h1.titulo {
        font-size: 1.7rem;
    }

    input.inp,
    select.inp {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}