/* ==========================================================================
   tbg-auth.css
   Shared styles for the auth surfaces at the root:
   /login.asp, /forgot.asp, /reset.asp
   Split-screen layout, TBG navy-and-ocean palette, Cormorant Garamond
   headlines + Figtree body.
   ========================================================================== */

:root{
    --tbg-mdblue:        #1f5d99;
    --tbg-mdblue-hover:  #163f6a;
    --tbg-navy-deep:     #0a223d;
    --tbg-navy:          #112f54;
    --tbg-ocean:         #1f5d99;
    --tbg-blue-tint:     #b8d1ec;
    --tbg-blue-soft:     #d8e6f5;
    --tbg-text:          #1a1a1a;
    --tbg-muted:         #3d4147;
    --tbg-border:        #d6d9dd;
    --tbg-bg-tint:       #f5f6f8;
    --tbg-white:         #ffffff;
}
*{ box-sizing: border-box; }
html, body{ height: 100%; margin: 0; }
body{
    font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--tbg-text);
    background: var(--tbg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------- layout ------------- */
.tbg-login-shell{
    display: flex;
    min-height: 100vh;
    width: 100%;
}
.tbg-brand-panel{
    flex: 1 1 50%;
    background:
        radial-gradient(1100px 600px at 20% 20%, rgba(255,255,255,.08), transparent 60%),
        linear-gradient(135deg, var(--tbg-navy-deep) 0%, var(--tbg-navy) 55%, var(--tbg-ocean) 100%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.tbg-form-panel{
    flex: 1 1 50%;
    background: var(--tbg-white);
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------- brand panel ------------- */
.tbg-brand-wordmark{
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    letter-spacing: .22em;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}
.tbg-brand-wordmark .dot{ color: var(--tbg-blue-tint); margin: 0 .25em; }
.tbg-brand-mid{
    margin-top: auto;
    margin-bottom: auto;
    max-width: 540px;
}
.tbg-brand-eyebrow{
    font-size: 12px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--tbg-blue-tint);
    font-weight: 600;
    margin: 0 0 18px;
}
.tbg-brand-headline{
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 64px;
    line-height: 1.05;
    margin: 0 0 28px;
    letter-spacing: -.01em;
}
.tbg-brand-headline em{
    font-style: italic;
    color: var(--tbg-blue-soft);
}
.tbg-brand-rule{
    width: 64px;
    height: 1px;
    background: rgba(255,255,255,.45);
    margin: 0 0 28px;
}
.tbg-brand-copy{
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255,255,255,.88);
    max-width: 460px;
    margin: 0;
}
.tbg-brand-foot{
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin: 0;
}

/* ------------- form panel ------------- */
.tbg-form-card{
    width: 100%;
    max-width: 420px;
}
.tbg-form-logo{
    text-align: center;
    margin: 0 0 28px;
}
.tbg-form-logo img{
    height: 64px;
    width: auto;
    max-width: 240px;
}
.tbg-form-h2{
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 30px;
    text-align: center;
    margin: 0 0 8px;
    color: var(--tbg-text);
}
.tbg-form-sub{
    text-align: center;
    font-size: 14px;
    color: var(--tbg-muted);
    margin: 0 0 26px;
    line-height: 1.5;
}

.tbg-alert{
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 18px;
}
.tbg-alert.error{ background: #fdecec; border: 1px solid #f5c0c0; color: #8b1d1d; }
.tbg-alert.info { background: #e6eef8; border: 1px solid #a5c0e2; color: #163f6a; }

.tbg-fld{ margin: 0 0 14px; }
.tbg-fld label{
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    color: var(--tbg-muted);
    margin: 0 0 6px;
}
.tbg-fld input[type="email"],
.tbg-fld input[type="text"],
.tbg-fld input[type="password"]{
    width: 100%;
    border: 1px solid var(--tbg-border);
    border-radius: 8px;
    background: var(--tbg-white);
    font-family: inherit;
    font-size: 15px;
    color: var(--tbg-text);
    padding: 11px 14px;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.tbg-fld input:focus{
    border-color: var(--tbg-mdblue);
    box-shadow: 0 0 0 3px rgba(31,93,153,.18);
}
.tbg-fld-hint{
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--tbg-muted);
    line-height: 1.4;
}

/* Password input with show/hide toggle */
.tbg-pw-wrap{ position: relative; }
.tbg-pw-wrap input[type="password"],
.tbg-pw-wrap input[type="text"]{
    padding-right: 64px;
}
.tbg-pw-toggle{
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--tbg-mdblue);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: background .12s ease, color .12s ease;
}
.tbg-pw-toggle:hover{
    background: var(--tbg-bg-tint);
    color: var(--tbg-mdblue-hover);
}
.tbg-pw-toggle:focus{
    outline: 2px solid rgba(31,93,153,.35);
    outline-offset: 1px;
}

.tbg-remember{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tbg-muted);
    margin: 6px 0 22px;
    user-select: none;
}
.tbg-remember input[type="checkbox"]{
    width: 16px;
    height: 16px;
    accent-color: var(--tbg-mdblue);
    cursor: pointer;
}
.tbg-remember label{ cursor: pointer; }

.tbg-btn{
    display: block;
    width: 100%;
    background: var(--tbg-mdblue);
    color: #fff;
    border: 1px solid var(--tbg-mdblue);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 14px 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .12s ease, border-color .12s ease, transform .04s ease;
}
.tbg-btn:hover{ background: var(--tbg-mdblue-hover); border-color: var(--tbg-mdblue-hover); color: #fff; text-decoration: none; }
.tbg-btn:active{ transform: translateY(1px); }

.tbg-btn-outline{
    background: transparent;
    color: var(--tbg-mdblue);
    border-color: var(--tbg-border);
}
.tbg-btn-outline:hover{
    background: var(--tbg-bg-tint);
    color: var(--tbg-mdblue-hover);
    border-color: var(--tbg-mdblue-hover);
}

.tbg-form-foot{
    margin-top: 22px;
    text-align: center;
}
.tbg-form-foot a{
    font-size: 13.5px;
    color: var(--tbg-mdblue);
    text-decoration: none;
    font-weight: 500;
}
.tbg-form-foot a:hover{ color: var(--tbg-mdblue-hover); text-decoration: underline; }

.tbg-form-meta{
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: var(--tbg-muted);
    line-height: 1.55;
}
.tbg-form-meta a{ color: var(--tbg-mdblue); text-decoration: none; }
.tbg-form-meta a:hover{ text-decoration: underline; }

/* ------------- responsive ------------- */
@media (max-width: 900px){
    .tbg-login-shell{ flex-direction: column; }
    .tbg-brand-panel{
        flex: 0 0 auto;
        padding: 36px 28px 44px;
    }
    .tbg-form-panel{
        flex: 1 1 auto;
        padding: 36px 24px 48px;
    }
    .tbg-brand-mid{ margin: 22px 0 0; }
    .tbg-brand-headline{ font-size: 40px; }
    .tbg-brand-copy{ font-size: 14.5px; }
    .tbg-brand-foot{ display: none; }
}
@media (max-width: 480px){
    .tbg-brand-panel{ padding: 28px 22px 36px; }
    .tbg-form-panel{ padding: 28px 20px 40px; }
    .tbg-brand-headline{ font-size: 34px; }
    .tbg-brand-wordmark{ font-size: 22px; letter-spacing: .18em; }
    .tbg-form-h2{ font-size: 26px; }
}
