/* Troomes Landing Page
   Paleta basada en el login original:
   #3A3E98 / #5256BC + blanco
*/
:root {
    --tl-blue: #3A3E98;
    --tl-blue-2: #1E5BEA;
    --tl-blue-soft: #EAF1FF;
    --tl-blue-pale: #F5F8FF;
    --tl-text: #10245A;
    --tl-muted: #53617A;
    --tl-border: #E3E9F4;
    --tl-white: #FFFFFF;
    --tl-shadow: 0 18px 50px rgba(26, 50, 105, .10);
}

.troomes-landing {
    min-height: 100vh;
    background: var(--tl-white);
    color: var(--tl-text);
    font-family: 'Poppins', Arial, sans-serif;
    overflow: hidden;
}

.troomes-landing * { box-sizing: border-box; }
.troomes-landing a { color: inherit; text-decoration: none; }

/* =========================================================
   HEADER - LOGO + NAVEGACIÓN
   ========================================================= */

.tl-header {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: start;
    width: 100%;
    min-height: 90px;
}

/* Primera mitad: logo centrado */
.tl-header-brand {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12px;
}

.tl-brand {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tl-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    object-fit: contain;
}

/* Segunda mitad: navegación en la parte superior */
.tl-header-navigation {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding-top: 20%;
}

.tl-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
}

.tl-nav a {
    transition: color .2s ease;
}

.tl-nav a:hover {
    color: var(--tl-blue-2);
}

.tl-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid var(--tl-blue-2);
    border-radius: 7px;
    color: var(--tl-blue-2) !important;
    font-weight: 600;
    line-height: 1.2;
}

/* Botón hamburguesa */
.tl-menu {
    display: none;
}

.tl-hero {
    width: min(1180px, calc(100% - 64px));
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: 70px;
    align-items: center;
    padding: 34px 0 52px;
}

.tl-eyebrow {
    color: var(--tl-blue-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.tl-copy h1 {
    margin: 14px 0 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 800;
}

.tl-copy h1 span { color: var(--tl-blue-2); }

.tl-lead {
    max-width: 610px;
    margin: 0;
    color: var(--tl-muted);
    font-size: 16px;
    line-height: 1.75;
}

.tl-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 38px;
}

.tl-features article {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tl-feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--tl-blue-soft);
    color: var(--tl-blue-2);
    font-size: 20px;
}

.tl-features strong {
    display: block;
    font-size: 13px;
    color: #13265C;
}

.tl-features small {
    display: block;
    margin-top: 4px;
    color: #68748A;
    font-size: 10px;
    line-height: 1.45;
}

.tl-testimonial {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 42px 0 0;
}

.tl-quote {
    font-family: Georgia, serif;
    font-size: 68px;
    line-height: .7;
    color: #A7C7FF;
}

.tl-testimonial p {
    margin: 0 0 8px;
    color: #59647A;
    font-size: 13px;
    line-height: 1.65;
    font-style: italic;
}

.tl-testimonial cite {
    font-size: 12px;
    color: #25355C;
    font-style: normal;
}

.tl-login-card {
    width: min(100%, 430px);
    justify-self: end;
    padding: 30px 30px 27px;
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: 12px;
    box-shadow: var(--tl-shadow);
}

.tl-card-header { text-align: center; margin-bottom: 25px; }
.tl-card-header h2 {
    margin: 0;
    color: #13265C;
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 700;
}
.tl-card-header p { margin: 5px 0 0; color: #6A7487; font-size: 14px; }

.tl-field {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 48px;
    margin-bottom: 12px;
    padding: 0 14px;
    background: #F5F8FC;
    border: 1px solid #E2E8F1;
    border-radius: 7px;
}

.tl-field-icon { color: #5F6F88; font-size: 15px; }
.tl-field input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #1C2E58;
    font: 13px 'Poppins', Arial, sans-serif;
    box-shadow: none !important;
}
.tl-field:focus-within {
    border-color: #8AAFFF;
    box-shadow: 0 0 0 3px rgba(30, 91, 234, .08);
}

.tl-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    margin: 5px 0 10px;
    font-size: 11px;
    color: #647087;
}

.tl-login-options a,
.tl-secondary-link a,
.tl-register a { color: var(--tl-blue-2); font-weight: 600; }

.tl-login-options input { vertical-align: middle; margin-right: 4px; }

.tl-secondary-link {
    text-align: center;
    font-size: 11px;
    margin: 4px 0 12px;
}

.tl-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #FFF1F1;
    border: 1px solid #FFD1D1;
    border-radius: 7px;
    color: #A32626;
    font-size: 12px;
}

.tl-primary-btn {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 7px;
    background: var(--tl-blue-2);
    color: #fff;
    font: 600 14px 'Poppins', Arial, sans-serif;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.tl-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(30, 91, 234, .18);
}

.tl-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 21px 0 15px;
    color: #7A8495;
    font-size: 11px;
}
.tl-divider::before, .tl-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #E1E6EE;
}

.tl-google-btn {
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #BAC5D5;
    border-radius: 7px;
    background: #fff;
    color: #172A55;
    font: 600 13px 'Poppins', Arial, sans-serif;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}
.tl-google-btn:hover {
    background: #F8FAFD;
    box-shadow: 0 4px 14px rgba(40, 60, 100, .08);
}
.tl-google-btn img { width: 20px; height: 20px; }

.tl-register {
    margin: 17px 0 0;
    text-align: center;
    color: #657087;
    font-size: 11px;
}

.tl-community-band {
    position: relative;
    min-height: 210px;
    margin-top: 4px;
    padding: 32px max(32px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(180deg, #F0F5FF 0%, #E9F0FF 100%);
    overflow: hidden;
}
.tl-community-band::before,
.tl-community-band::after {
    content: '';
    position: absolute;
    width: 52vw;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
}
.tl-community-band::before { top: -60px; left: -10%; transform: rotate(4deg); }
.tl-community-band::after { bottom: -65px; right: -10%; transform: rotate(-4deg); }

.tl-network-art {
    position: relative;
    z-index: 1;
    width: 58%;
}
.tl-network-art img {
    display: block;
    width: 100%;
    max-width: 650px;
    max-height: 155px;
    margin-left: auto;
}

.tl-community-content {
    position: relative;
    z-index: 1;
    flex: 1;
}
.tl-community-content h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    line-height: 1.15;
    color: #15285D;
}
.tl-community-content p {
    margin: 10px 0 0;
    color: #596B8C;
    font-size: 12px;
}

.tl-bottom-message {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #25355C;
    font-size: 12px;
}
.tl-bottom-message strong { color: var(--tl-blue-2); }
.tl-bottom-message span { color: #748097; }

.tl-footer {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    min-height: 78px;
    border-top: 1px solid #EEF1F6;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #6C7586;
    font-size: 10px;
}
.tl-footer-brand { margin-right: auto; }
.tl-footer-brand img { width: 100px; max-height: 42px; object-fit: contain; }
.tl-footer-links { display: flex; gap: 20px; }
.tl-time { margin-left: auto; }

@media (max-width: 900px) {
    .tl-hero { grid-template-columns: 1fr; gap: 42px; }
    .tl-login-card { justify-self: center; }
    .tl-features { grid-template-columns: repeat(2, 1fr); }
    .tl-community-band { padding-left: 32px; padding-right: 32px; }
    .tl-network-art { width: 55%; }
}

@media (max-width: 650px) {
    .tl-header, .tl-hero, .tl-bottom-message, .tl-footer {
        width: min(100% - 32px, 1180px);
    }
    .tl-header {
        min-height: 76px;
        grid-template-columns: 1fr;
    }

    .tl-header-brand {
        padding-top: 10px;
    }

    .tl-brand img {
        width: 140px;
        max-height: 140px;
    }

    .tl-header-navigation {
        width: 100%;
        justify-content: flex-end;
        align-items: flex-start;
        padding-top: 0;
    }

    .tl-menu {
        display: block;
        margin-top: 0;
    }
    .tl-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        z-index: 20;
        padding: 15px;
        background: #fff;
        border: 1px solid var(--tl-border);
        border-radius: 10px;
        box-shadow: var(--tl-shadow);
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .tl-nav.is-open { display: flex; }

    .tl-nav {
        font-size: 15px;
    }

    .tl-nav-login {
        text-align: center;
    }
    .tl-copy h1 { font-size: 39px; }
    .tl-features { gap: 20px 14px; }
    .tl-login-card { padding: 24px 18px; }
    .tl-community-band {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px 35px;
    }
    .tl-network-art { width: 100%; }
    .tl-network-art img { margin: 0 auto; max-height: 125px; }
    .tl-bottom-message { flex-direction: column; padding: 24px 0; }
    .tl-footer { flex-wrap: wrap; padding: 18px 0; }
    .tl-footer-brand { margin-right: 0; }
    .tl-footer-links { flex-wrap: wrap; gap: 12px; }
    .tl-time { width: 100%; margin-left: 0; }
}

@media (max-width: 420px) {
    .tl-features { grid-template-columns: 1fr 1fr; }
    .tl-feature-icon { width: 36px; height: 36px; }
    .tl-features small { font-size: 9px; }
}

/* =========================================================
   TROOMES AUTH PAGES
   Shared by login, registration and agreement pages
   ========================================================= */

.tl-auth-page {
    width: min(980px, calc(100% - 32px));
    margin: 35px auto 55px;
    font-family: 'Poppins', Arial, sans-serif;
}

.tl-auth-header {
    text-align: center;
    margin: 0 0 25px;
}

.tl-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tl-auth-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 170px;
    height: auto;
    object-fit: contain;
}

.tl-auth-card {
    width: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: 12px;
    box-shadow: var(--tl-shadow);
}

.tl-auth-card + .tl-auth-card {
    margin-top: 18px;
}

.tl-auth-title {
    margin: 0 0 8px;
    text-align: center;
    color: #13265C;
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 700;
}

.tl-auth-subtitle {
    margin: 0 0 25px;
    text-align: center;
    color: #6A7487;
    font-size: 14px;
}

.tl-auth-content {
    color: #53617A;
    font-size: 14px;
    line-height: 1.75;
}

.tl-auth-content h2,
.tl-auth-content h3,
.tl-auth-content h4 {
    color: #13265C;
    font-family: 'Montserrat', sans-serif;
}

.tl-auth-content a {
    color: var(--tl-blue-2);
}

/* Registration fields */
.tl-register-form .fields2 dl {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #EEF1F6;
}

.tl-register-form .fields2 dt {
    color: #25355C;
    font-size: 13px;
}

.tl-register-form .fields2 dt span {
    color: #68748A;
    font-size: 11px;
}

.tl-register-form .fields2 dd {
    margin-top: 7px;
}

.tl-register-form input.inputbox,
.tl-register-form select,
.tl-register-form textarea {
    min-height: 42px;
    max-width: 100%;
    padding: 8px 12px;
    background: #F5F8FC !important;
    border: 1px solid #E2E8F1 !important;
    border-radius: 7px;
    color: #1C2E58;
    font: 13px 'Poppins', Arial, sans-serif;
    box-sizing: border-box;
}

.tl-register-form input.inputbox:focus,
.tl-register-form select:focus,
.tl-register-form textarea:focus {
    outline: 0;
    border-color: #8AAFFF !important;
    box-shadow: 0 0 0 3px rgba(30, 91, 234, .08);
}

.tl-register-form .error,
.tl-auth-error {
    display: block;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #FFF1F1;
    border: 1px solid #FFD1D1;
    border-radius: 7px;
    color: #A32626;
    font-size: 12px;
}

.tl-auth-notice {
    margin-bottom: 16px;
    padding: 10px 12px;
    color: #7A4D00;
    background: #FFF8E8;
    border: 1px solid #F4D99A;
    border-radius: 7px;
    font-size: 12px;
}

/* Buttons: same visual language as login_body.html */
.tl-auth-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tl-auth-buttons input,
.tl-auth-buttons a,
.tl-auth-primary,
.tl-auth-secondary {
    min-height: 47px;
    padding: 10px 24px;
    border-radius: 7px;
    font: 600 14px 'Poppins', Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.tl-auth-buttons input.button1,
.tl-auth-primary {
    border: 0;
    background: var(--tl-blue-2);
    color: #fff !important;
}

.tl-auth-buttons input.button1:hover,
.tl-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(30, 91, 234, .18);
}

.tl-auth-buttons input.button2,
.tl-auth-secondary {
    border: 1px solid #BAC5D5;
    background: #fff;
    color: #172A55 !important;
}

.tl-auth-buttons input.button2:hover,
.tl-auth-secondary:hover {
    background: #F8FAFD;
    box-shadow: 0 4px 14px rgba(40, 60, 100, .08);
}

.tl-auth-back {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
}

.tl-auth-back a {
    color: var(--tl-blue-2);
    font-weight: 600;
}

.tl-auth-page .submit-buttons {
    text-align: center;
}

@media (max-width: 650px) {
    .tl-auth-page {
        width: min(100% - 24px, 980px);
        margin: 20px auto 35px;
    }

    .tl-auth-card {
        padding: 22px 16px;
    }

    .tl-auth-logo img {
        max-height: 180px;
    }

    .tl-auth-title {
        font-size: 23px;
    }

    .tl-auth-buttons {
        flex-direction: column;
    }

    .tl-auth-buttons input,
    .tl-auth-buttons a {
        width: 100%;
    }

    .tl-register-form .fields2 dt,
    .tl-register-form .fields2 dd {
        width: 100%;
        float: none;
    }
}

/* Agreement / phpBB controls */
.tl-auth-buttons .button1,
.tl-auth-buttons .button2 {
    margin: 0 !important;
    text-decoration: none !important;
}

.tl-auth-content .sitename-title {
    color: #13265C;
    font-family: 'Montserrat', sans-serif;
}

.tl-auth-content hr.dashed {
    border: 0;
    border-top: 1px dashed #DCE3EE;
    margin: 22px 0;
}

@media (max-width: 650px) {
    .tl-auth-header {
        margin-bottom: 18px;
    }
}

