/* Member auth pages (login / register / password help) */

:root {
    --sr-bg-mint: #f1f6f1;
    --sr-text: #1a2b2b;
    --sr-req: #8b6914;
    --sr-border: #c5d0cc;
    --sr-input-bg: #fff;
    --sr-btn-gold: #CBA135;
    --sr-btn-gold-hover: #b8922e;
    --sr-link: #1e4d4a;
}

html {
    height: 100%;
}

.auth-body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--sr-bg-mint);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: var(--sr-text);
    overflow-x: hidden;
}

.auth-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.auth-topbar {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    background: #1a2b2b;
    border-bottom: 3px solid #CBA135;
    padding: 10px 24px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.auth-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.auth-brand-link {
    display: inline-block;
    text-decoration: none;
}

.auth-brand-link:hover,
.auth-brand-link:focus {
    text-decoration: none;
    opacity: 0.92;
}

.auth-brand-logo {
    max-height: 52px;
    width: auto;
    vertical-align: middle;
}

/* Override .container-fluid horizontal auto margins — inside a column flex parent they
   shrink-wrap and center the strip (squashed layout on desktop). */
.auth-outer.container-fluid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
}

.auth-outer {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.auth-split-row {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
}

.auth-split-visual {
    flex-shrink: 0;
    min-height: 200px;
    background-color: #1a2b2b;
    background-image: url('../img/simunye/Login.jpg');
    background-size: cover;
    background-position: center;
}

.auth-split-form-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 24px 32px;
    background: var(--sr-bg-mint);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.auth-form-panel {
    width: 100%;
    max-width: 520px;
}

.auth-form-title {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--sr-text);
    margin: 0 0 1.5rem;
    letter-spacing: 0.01em;
}

.auth-lead {
    color: #4a5f5f;
    margin: -0.75rem 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sr-float-wrap {
    position: relative;
    margin-bottom: 1.35rem;
}

.sr-float-wrap .sr-input {
    display: block;
    width: 100%;
    min-height: 56px;
    height: 56px;
    padding: 0.95rem 14px 1.15rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--sr-text);
    background: var(--sr-input-bg);
    border: 1px solid var(--sr-border);
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sr-float-wrap textarea.sr-input {
    height: auto;
    min-height: 120px;
    padding-top: 1.35rem;
    resize: vertical;
}

.sr-float-wrap .sr-input:focus {
    border-color: #CBA135;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(203, 161, 53, 0.2);
}

.sr-field-hint {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 40px;
    font-size: 0.6rem;
    font-weight: 400;
    color: #78909c;
    letter-spacing: 0.01em;
    pointer-events: none;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.16s ease;
}

.sr-float-wrap.sr-hint-muted .sr-field-hint {
    opacity: 0;
}

.sr-float-wrap .sr-float-label {
    position: absolute;
    left: 14px;
    top: 25px;
    transform: translateY(-50%);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sr-text);
    pointer-events: none;
    transition: transform 0.18s ease, top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
    transform-origin: left center;
    line-height: 1;
}

.sr-float-wrap textarea.sr-input ~ .sr-float-label {
    top: 1.15rem;
    transform: translateY(0);
}

.sr-float-wrap .sr-req {
    color: var(--sr-req);
    font-weight: 700;
}

.sr-float-wrap .sr-input:focus ~ .sr-float-label,
.sr-float-wrap .sr-input:not(:placeholder-shown) ~ .sr-float-label {
    top: 2px;
    transform: translateY(0) scale(0.78);
    color: var(--sr-text);
}

.sr-float-wrap textarea.sr-input:focus ~ .sr-float-label,
.sr-float-wrap textarea.sr-input:not(:placeholder-shown) ~ .sr-float-label {
    top: 2px;
    transform: scale(0.78);
}

span.sr-float-label {
    display: block;
}

.sr-float-wrap span.sr-float-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.sr-float-wrap .sr-input:focus ~ span.sr-float-label,
.sr-float-wrap .sr-input:not(:placeholder-shown) ~ span.sr-float-label {
    top: 2px;
    transform: translateY(0) scale(0.78);
}

.sr-float-wrap textarea.sr-input ~ span.sr-float-label {
    top: 1.15rem;
    transform: translateY(0);
}

.sr-float-wrap textarea.sr-input:focus ~ span.sr-float-label,
.sr-float-wrap textarea.sr-input:not(:placeholder-shown) ~ span.sr-float-label {
    top: 2px;
    transform: scale(0.78);
}

.sr-float-wrap .sr-valmsg {
    display: block;
    font-size: 0.6rem;
    color: #c62828;
    margin-top: 0.35rem;
    padding-left:10px;
}

.auth-forgot {
    font-size: 0.85rem;
    margin: -0.5rem 0 1.25rem;
}

.auth-forgot a {
    color: var(--sr-link);
    font-weight: 600;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.sr-btn-pill {
    display: inline-block;
    padding: 0.65rem 2.25rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sr-text) !important;
    background: var(--sr-btn-gold) !important;
    border: none !important;
    border-radius: 999px !important;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    text-transform: none;
}

.sr-btn-pill:hover,
.sr-btn-pill:focus {
    background: var(--sr-btn-gold-hover) !important;
    color: var(--sr-text) !important;
}

.sr-btn-pill.sr-btn-block {
    width: 100%;
}

.sr-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 0.5rem;
}

.sr-link-signin {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sr-link);
    text-decoration: none;
}

.sr-link-signin:hover,
.sr-link-signin:focus {
    text-decoration: underline;
    color: #CBA135;
}

.auth-register-link {
    margin-top: 1.35rem;
    font-size: 0.9rem;
}

.auth-register-link a {
    color: var(--sr-link);
    font-weight: 700;
}

.auth-register-link a:hover {
    text-decoration: underline;
}
.auth-footer .auth-footer-copy {
    color: rgba(255, 255, 255, 0.75);
}
.auth-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 200;
    padding: 16px 12px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    background: #121f1f;
    border-top: 1px solid rgba(203, 161, 53, 0.25);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.auth-footer-copy {
    margin: 0;
}

.register-help {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sr-border);
    font-size: 0.88rem;
    color: #4a5f5f;
    line-height: 1.55;
}

.register-help .register-help-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sr-text);
    margin: 0 0 0.5rem;
}

.register-auth-panel .well {
    background: transparent;
    border: 0 none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 992px) {
    .auth-split-form-wrap {
        padding: 40px 24px 40px;
    }

    .auth-split-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .auth-split-visual {
        flex: 0 0 50%;
        max-width: 50%;
        min-height: 0;
        align-self: stretch;
        overflow: hidden;
    }

    .auth-split-form-wrap {
        flex: 1 1 50%;
        max-width: 50%;
        min-width: 0;
    }
}
