﻿
body {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(248,249,250,1) 0%, rgba(255,255,255,1) 55%);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    border-bottom: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.9);
}

.site-title-fallback {
    font-weight: 700;
    letter-spacing: .2px;
}

.site-brand {
    display: inline-block;
    font-weight: 700;
    letter-spacing: .5px;
    color: #b02a37;
    position: relative;
    padding-bottom: .15rem;
    text-transform: uppercase;
    font-size: 1.35rem;
}

    .site-brand::after {
        content: "";
        position: absolute;
        left: 15%;
        right: 15%;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #b02a37, transparent);
        opacity: .7;
    }

.footer {
    border-top: 1px solid rgba(0,0,0,.08);
    padding: .75rem 0;
    background: rgb(237 237 237);
    backdrop-filter: blur(6px);
}

    .footer i {
        color: #6c757d;
    }

/* Page polish (lightweight, not invasive) */
.auth-wrap {
    min-height: calc(100vh - 160px); /* header+footer allowance */
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
}

.auth-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.auth-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

.row.auth-row {
    align-items: stretch;
}

.auth-card.h-100 {
    height: 100%;
}

.auth-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.form-label-lite {
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: .25rem;
}

/* Make old WebForms inputs look like Bootstrap inputs */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card textarea,
.auth-card select {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
}

/* Buttons */
.btn-primary-ish {
    display: inline-block;
    width: 100%;
    padding: .6rem .9rem;
    border-radius: .6rem;
    border: 0;
}

/* Your existing login message container gets upgraded */
.login-message {
    max-width: 100%;
    margin: 1rem 0 0 0;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.message-header {
    padding: .75rem 1rem;
    font-size: .95rem;
    font-weight: 700;
    background: rgba(13,110,253,.08);
}

.message-body {
    padding: 1rem;
    font-size: .95rem;
    line-height: 1.5;
    background-color: #fff;
}
/* Wizard: stop the awkward centered/right-aligned form look */
.wizard-table td:first-child {
    width: 210px !important;
    text-align: left !important;
    padding-right: .75rem !important;
    vertical-align: middle;
    color: #6c757d;
    font-size: .95rem;
}

.wizard-table td:last-child {
    text-align: left !important;
}

/* Make inputs feel normal sized */
.wizard-table input[type="text"],
.wizard-table input[type="password"],
.wizard-table input[type="email"] {
    width: 320px !important;
    max-width: 100%;
}

/* Compress vertical spacing a bit */
.wizard-table tr {
    height: auto !important;
}

.wizard-table td {
    padding-top: .35rem;
    padding-bottom: .35rem;
}

/* Wizard / PasswordRecovery tables inside cards */
.wizard-table td {
    padding: .35rem .5rem;
}

.wizard-table .tabText {
    color: #6c757d;
    font-size: .9rem;
}

/* Legacy fail panels -> modern alerts */
.legacy-alert {
    border-radius: .75rem;
    border: 1px solid rgba(0,0,0,.08);
    padding: 1rem;
    background: #fff;
}

/* Optional: keep your hidden login failed div, but make it sane */
#login {
    display: none;
}

/* Center the PasswordRecovery control content */
#cphMaster_PasswordRecovery table {
    margin-left: auto;
    margin-right: auto;
}

/* Center inputs and button */
#cphMaster_PasswordRecovery input[type="text"],
#cphMaster_PasswordRecovery input[type="password"],
#cphMaster_PasswordRecovery input[type="submit"] {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.pword {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}