/* TimesMed /Login page */

html,
body.tm-login-page {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #eaf8f5;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}

body.tm-login-page {
    overflow-x: hidden;
    max-width: 100%;
}

.tm-login *,
.tm-login *:before,
.tm-login *:after {
    box-sizing: border-box;
}

.tm-login {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(105deg, #eefbf8 0%, #e7f6f3 38%, rgba(232, 247, 244, 0.2) 55%, transparent 70%);
    overflow-x: hidden;
    overflow-y: auto;
}

.tm-login-photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tm-login-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
}

.tm-login-photo:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28%;
    background: linear-gradient(90deg, #eaf8f5 0%, rgba(234, 248, 245, 0) 100%);
}

.tm-login-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.tm-login-blob-a {
    width: 180px;
    height: 180px;
    right: 8%;
    top: 8%;
    background: rgba(45, 212, 191, 0.28);
}

.tm-login-blob-b {
    width: 90px;
    height: 90px;
    right: 4%;
    top: 28%;
    background: rgba(20, 184, 166, 0.22);
}

.tm-login-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 28px 28px 40px 40px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(340px, 400px) minmax(120px, 0.5fr);
    gap: 20px 24px;
    align-items: center;
    width: 100%;
}

.tm-brand {
    color: #0f2d5b;
    max-width: 460px;
    padding-bottom: 48px;
}

.tm-brand-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.tm-brand-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.tm-brand h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f2d5b;
    overflow-wrap: break-word;
    max-width: 100%;
}

.tm-brand > p {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.tm-feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 340px;
}

.tm-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d9efea;
    border-radius: 12px;
    padding: 10px 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    min-width: 0;
}

.tm-feat i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e7f7f4;
    color: #0b9e94;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.tm-tagline {
    margin-top: 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: #0b9e94;
    font-size: 18px;
}

.tm-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(15, 60, 80, 0.16);
    padding: 28px 28px 22px;
    width: 100%;
    position: relative;
}

.tm-card-logo {
    display: block;
    text-align: center;
    margin: 0 0 6px;
}

.tm-card-logo img {
    height: 46px;
    width: auto;
    margin: 0 auto;
}

.tm-card-sub {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    margin: 0 0 18px;
}

.tm-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 16px;
}

.tm-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d7e8e5;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    background: #fff;
}

.tm-tabs a:hover,
.tm-tabs a:focus {
    text-decoration: none !important;
    color: #0b9e94;
}

.tm-tabs a.active {
    background: #0b9e94 !important;
    border-color: #0b9e94 !important;
    color: #fff !important;
}

.tm-err {
    color: #dc2626;
    font-size: 13px;
    min-height: 18px;
    margin: 0 0 8px;
    text-align: center;
}

.tm-login .error_email,
.tm-login .error_Pwd {
    color: #dc2626;
    font-size: 11px;
    margin-top: 4px;
}

.tm-field {
    position: relative;
    margin: 0 0 12px;
}

.tm-field > i.tm-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -8px;
    color: #94a3b8;
    z-index: 2;
    pointer-events: none;
}

.tm-login .tm-field .form-control,
.tm-login .form-control {
    height: 46px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 10px 40px 10px 40px !important;
    font-size: 14px !important;
    color: #0f2d5b !important;
    background: #fff !important;
    width: 100% !important;
}

.tm-login input.invalid,
.tm-login textarea.invalid {
    border-color: #dc2626 !important;
}

.tm-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.tm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: 13px;
}

.tm-row label {
    margin: 0;
    font-weight: 400;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-row a {
    color: #2563eb;
    font-weight: 600;
}

.tm-btn-login,
.tm-login .btn-lgn,
.tm-login input.btn-lgn,
.tm-login button.btn-lgn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    border: 0 !important;
    border-radius: 10px !important;
    background: #0b9e94 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

.tm-btn-login:hover,
.tm-login .btn-lgn:hover {
    background: #0a8c84 !important;
    color: #fff !important;
}

.tm-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.tm-or:before,
.tm-or:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.tm-soc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    margin: 0 0 10px;
    font-family: inherit;
}

.tm-soc-fb {
    background: #1877f2;
    color: #fff;
}

.tm-soc-g {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0 !important;
}

.tm-doctor-link {
    display: block;
    text-align: center;
    margin: 8px 0 0;
    font-size: 13px;
    color: #0b9e94;
}

.tm-native {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tm-login .log-in-link,
.tm-login .log-bg,
.tm-login .log-logo {
    display: none !important;
}

.tm-login .checkbox {
    margin: 0;
}

.tm-login .mui-m-tb {
    margin: 0 0 12px;
}

.tm-login .tab-content > .tab-pane {
    display: none;
}

.tm-login .tab-content > .active {
    display: block;
}

.tm-reg-note {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin: 8px 0 0;
}

.tm-gender {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 13px;
    color: #475569;
}

.tm-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
}

.tm-type label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    background: #fff;
}

.tm-type input {
    margin: 0;
}

.tm-type label:has(input:checked) {
    border-color: #0b9e94;
    background: #e7f7f4;
    color: #0b9e94;
}

.tm-login .input-group {
    display: flex;
    width: 100%;
}

.tm-login .input-group-btn {
    width: 88px;
    flex: 0 0 88px;
}

.tm-login .input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
}

.tm-login .input-group-btn .form-control {
    border-radius: 10px 0 0 10px !important;
    padding-left: 10px !important;
}

@media (max-width: 991px) {
    .tm-login-photo {
        width: 100%;
        height: 200px;
        position: relative;
    }

    .tm-login-photo img {
        object-position: center 12%;
    }

    .tm-login-photo:after {
        width: 100%;
        height: 42%;
        top: auto;
        bottom: 0;
        background: linear-gradient(0deg, #eaf8f5 0%, rgba(234, 248, 245, 0) 100%);
    }

    .tm-login-inner {
        display: block;
        min-height: 0;
        padding: 12px 16px 32px;
        margin-top: -36px;
        grid-template-columns: none;
    }

    .tm-brand {
        max-width: none;
        padding-bottom: 16px;
        text-align: center;
    }

    .tm-brand h1 {
        font-size: 22px;
        padding: 0 4px;
    }

    .tm-brand > p {
        font-size: 13px;
        padding: 0 8px;
    }

    .tm-feats {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .tm-tagline {
        text-align: center;
    }

    .tm-card {
        margin: 8px auto 0;
        max-width: 430px;
        width: 100%;
        padding: 22px 16px 18px;
    }
}

@media (max-width: 480px) {
    .tm-login-photo {
        height: 150px;
    }

    .tm-feats {
        display: none;
    }

    .tm-brand h1 {
        font-size: 20px;
    }

    .tm-brand > p {
        font-size: 12px;
    }

    .tm-tabs a {
        font-size: 13px;
        height: 40px;
        padding: 0 6px;
    }

    .tm-row {
        flex-wrap: wrap;
    }

    .tm-login .tm-field .form-control,
    .tm-login .form-control {
        font-size: 16px !important;
    }
}
