body {
    min-height: 100vh;
    background: #fffdf7;
    overflow-x: hidden;
}

.tch-login-page {
    position: relative;
    min-height: 100vh;
    padding: 72px 28px 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 95% 35%, rgba(255, 232, 126, .38) 0 12%, transparent 13%),
        linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
    overflow: hidden;
}

.tch-login-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: 54px;
}

.tch-login-hero {
    position: relative;
    min-height: 620px;
}

.hero-image-card {
    position: relative;
    height: 575px;
    border-radius: 0 92px 0 92px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(50, 64, 35, .16);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    left: 63%;
    bottom: 24px;
    z-index: 4;
    width: 468px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 38px rgba(50, 64, 35, .18);
    transform: translateX(-50%);
}

.caption-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffc400;
    font-size: 22px;
}

.hero-caption p {
    margin: 0;
    color: #25354f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.hero-caption strong {
    color: #ff7a1a;
}

.tch-login-card {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    padding: 38px 38px 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 55px rgba(34, 57, 94, .14);
    text-align: center;
}

.tch-login-card h1 {
    margin: 0;
    color: #123768;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.login-subtitle {
    margin: 8px 0 26px;
    color: #7c8596;
    font-size: 13px;
    line-height: 1.45;
}

.tch-login-form {
    text-align: left;
}

.login-field {
    position: relative;
    margin-bottom: 14px;
}

.login-field .form-control {
    height: 46px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    padding: 0 16px;
    color: #25354f;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(18, 55, 104, .04);
}

.login-field .form-control::placeholder {
    color: #9aa4b5;
}

.login-field .form-control:focus {
    border-color: #8bc34a;
    box-shadow: 0 0 0 4px rgba(139, 195, 74, .16);
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 18px;
}

.login-remember {
    margin: 0;
}

.login-remember .form-check {
    min-height: 0;
    margin: 0;
}

.login-remember .form-check-input {
    width: 16px;
    height: 16px;
    margin-top: .12rem;
    border-radius: 4px;
    border-color: #8bc34a;
}

.login-remember .form-check-input:checked {
    background-color: #76b82a;
    border-color: #76b82a;
}

.login-remember label {
    color: #333f52;
    font-size: 13px;
    font-weight: 700;
}

.forgot-link {
    color: #2b66c3;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.forgot-link:hover {
    color: #123768;
    text-decoration: underline;
}

.tch-login-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffc400, #ffad00);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(255, 173, 0, .28);
}

.tch-login-btn:hover,
.tch-login-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #f2b600, #f39b00);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #7c8596;
    font-size: 13px;
    font-style: normal;
}

.login-divider span {
    height: 1px;
    flex: 1;
    background: #dfe6d2;
}

.login-divider em {
    font-style: normal;
}

.request-access-btn {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #77bd45;
    border-radius: 12px;
    background: #fff;
    color: #5da331;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.request-access-btn:hover {
    background: #f3ffe9;
    color: #4c9228;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    color: #8b95a6;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.privacy-icon {
    width: 40px;
    height: 40px;
    display: block;
    flex: 0 0 28px;
    object-fit: contain;
}

.privacy-note p {
    margin: 0;
}

.login-plane {
    position: absolute;
    top: 160px;
    right: 78px;
    z-index: 2;
    width: 80px;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-grass {
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -82px;
    z-index: 1;
    height: 145px;
    border-radius: 50% 50% 0 0;
    background: #a8cf4d;
}

.login-leaf {
    position: absolute;
    bottom: 10px;
    right: 86px;
    z-index: 2;
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}

.invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
}

.password-setup-page {
    min-height: 100vh;
    padding: 42px 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(168, 85, 247, .07), transparent 28%),
        #ffffff;
}

.password-setup-card {
    width: min(100%, 760px);
    margin: 0 auto;
    color: #2d1b4e;
}

.password-setup-header h1 {
    margin: 0 0 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}

.password-setup-header p {
    margin: 0;
    color: #74668e;
    font-size: 14px;
}

.password-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 12px 18px;
    border: 1px solid #bfe8d0;
    border-radius: 11px;
    background: #f0fbf5;
    color: #2f9360;
    font-size: 13px;
}

.password-verified-check {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3cab70;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.password-verified-divider {
    width: 1px;
    height: 20px;
    background: #d3ecdd;
}

.password-verified-badge > span:last-child {
    color: #716484;
}

.password-setup-spacer {
    height: 40px;
}

.password-setup-form {
    display: grid;
    gap: 20px;
}

.password-setup-field {
    margin: 0;
}

.password-setup-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px 4px;
    color: #514174;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.password-field-icon {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-control {
    height: 56px;
    padding: 0 58px 0 18px;
    border: 1px solid #dcd6e8;
    border-radius: 12px;
    background: #ffffff;
    color: #2d1b4e;
    font-size: 16px;
    box-shadow: 0 5px 16px rgba(45, 27, 78, .03);
}

.password-input-wrap .form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}

.password-visibility-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-visibility-btn img {
    width: 22px;
    height: 22px;
    display: block;
    margin: auto;
    object-fit: contain;
}

.password-hide-icon {
    display: none !important;
}

.password-visibility-btn.is-visible .password-show-icon {
    display: none;
}

.password-visibility-btn.is-visible .password-hide-icon {
    display: block !important;
}

.password-requirements {
    padding: 18px 20px;
    border: 1px solid #e5d9fb;
    border-radius: 13px;
    background: linear-gradient(135deg, #f7f1ff, #fcfaff);
}

.password-requirements-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #3e2e62;
    font-size: 12px;
}

.password-requirements-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 28px;
    border-radius: 9px;
    background: #eadcff;
    color: #6e2fd5;
}

.password-requirements ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #766c88;
    font-size: 12px;
}

.password-requirements li span {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    background: #d8d2e2;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.password-requirements li.is-valid {
    color: #57427d;
}

.password-requirements li.is-valid span {
    background: #7440dd;
}

.password-security-tip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #f3dfad;
    border-radius: 12px;
    background: #fffcf4;
    color: #756789;
}

.password-tip-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #ffedba;
    color: #a87913;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.password-security-tip p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.password-security-tip strong {
    display: block;
    color: #54456f;
    font-size: 12px;
}

.password-save-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(90deg, #6f20d0, #4d079d);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(82, 18, 164, .20);
    transition: background .2s ease, box-shadow .2s ease;
}

.password-save-btn span {
    margin-right: 9px;
}

.password-save-btn:hover,
.password-save-btn:focus {
    background: linear-gradient(90deg, #7b2be0, #5a0bb3);
    box-shadow: 0 15px 28px rgba(82, 18, 164, .28);
}

.password-setup-field .invalid-feedback {
    margin: 7px 4px 0;
}

@media (max-width: 980px) {
    .tch-login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tch-login-hero {
        min-height: auto;
    }

    .hero-image-card {
        height: 420px;
        border-radius: 40px;
    }

    .tch-login-card {
        max-width: 520px;
    }
}

@media (max-width: 560px) {
    .tch-login-page {
        min-height: calc(100vh - 66px);
        padding: 76px 16px 54px;
        align-items: flex-start;
    }

    .hero-image-card {
        height: 300px;
    }

    .hero-caption {
        width: 92%;
        padding: 14px;
    }

    .tch-login-card {
        max-width: 100%;
        border-radius:  26px;
    }

    .tch-login-hero {
        margin-bottom: 34px; 
    }

    .tch-login-card h1 {
        font-size: 26px;
        line-height: 1.05;
    }

    .login-subtitle {
        margin: 6px 0 16px;
        font-size: 12px;
        line-height: 1.35;
    }

    .login-field {
        margin-bottom: 10px;
    }

    .login-field .form-control {
        height: 44px;
        font-size: 13px;
    }

    .login-row {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        margin: 4px 0 12px;
    }

    .login-remember label,
    .forgot-link {
        font-size: 12px;
    }

    .tch-login-btn {
        height: 46px;
        font-size: 16px;
    }

    .login-divider {
        margin: 12px 0;
    }

    .request-access-btn {
        height: 44px;
        font-size: 13px;
    }

    .privacy-note {
        gap: 10px;
        margin-top: 16px;
        font-size: 11px;
        justify-content: center;
    }

    .privacy-icon {
        width: 34px;
        height: 34px;
    }

    .login-plane {
        display: block;
        top: 390px;
        right: 18px;
        width: 54px;
    }

    .login-grass {
        bottom: -58px;
        height: 98px;
    }

    .login-leaf {
        bottom: 6px;
        width: 88px;
        transform: translateX(50%);
    }

    .password-setup-page {
        padding: 28px 18px;
    }

    .password-setup-header h1 {
        font-size: 38px;
    }

    .password-verified-badge {
        width: 100%;
        flex-wrap: wrap;
    }

    .password-setup-spacer {
        height: 54px;
    }
}

@media (max-width: 390px) {
    .tch-login-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .tch-login-card {
        padding-right: 16px;
        padding-left: 16px;
    }

    .login-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-leaf {
        width: 78px;
    }
}
