﻿/* =========================================================
   LOGIN PAGE
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}


    body.login-page {
        min-height: 100vh;
        font-family: "Segoe UI", Arial, Helvetica, sans-serif;
        color: #333;
        background-image: url("/img/TakeCare Wallpaper Size Standard_08302022-01.jpg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }


/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.login-page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;
    width: 450px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 0 42px 30px 42px;
    box-sizing: border-box;
}


/* =========================================================
   MERLOT TOP BORDER
   ========================================================= */

.login-card-top {
    height: 7px;
    width: calc(100% + 84px);
    margin-left: -42px;
    background: #800040;
}


/* =========================================================
   LOGO
   ========================================================= */

.login-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 38px;
    margin-bottom: 18px;
}


.login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}


/* =========================================================
   HEADER
   ========================================================= */

.login-header {
    text-align: center;
    margin-bottom: 38px;
}


    .login-header h1 {
        margin: 0;
        color: #800040;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.2;
    }


    .login-header p {
        margin: 10px 0 0 0;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }


/* =========================================================
   FORM
   ========================================================= */

.login-form {
    width: 100%;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.login-validation {
    color: #b42318;
    font-size: 13px;
    margin-bottom: 15px;
}

    .login-validation:empty {
        display: none;
    }


/* =========================================================
   FIELD
   ========================================================= */

.login-field {
    width: 100%;
    margin-bottom: 25px;
}


    .login-field > label {
        display: block;
        margin-bottom: 8px;
        color: #222;
        font-size: 14px;
        font-weight: 600;
    }


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.login-input-wrapper {
    position: relative;
    width: 100%;
    height: 46px;
}


/* =========================================================
   INPUT
   ========================================================= */

.login-input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #d9a4b9;
    border-radius: 5px;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .login-input::placeholder {
        color: #999;
    }


/* =========================================================
   INPUT WITH LEFT ICON
   ========================================================= */

.login-input-with-icon {
    padding-left: 56px;
}


/* =========================================================
   LEFT ICON
   ========================================================= */

.login-input-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7e6ed;
    border-right: 1px solid #e4b8c8;
    border-radius: 5px 0 0 5px;
    z-index: 2;
    pointer-events: none;
}


    .login-input-icon svg {
        width: 17px;
        height: 17px;
        fill: #800040;
        display: block;
    }


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.login-input:focus {
    border-color: #800040;
    box-shadow: 0 0 0 3px rgba(128, 0, 64, 0.10);
}


/* =========================================================
   PASSWORD INPUT
   ========================================================= */

.login-password-input {
    padding-right: 65px;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.login-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 46px;
    min-width: 60px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #800040;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 3;
}


    .login-password-toggle:hover {
        color: #5f0030;
    }


    .login-password-toggle:focus {
        outline: none;
    }


    .login-password-toggle:focus-visible {
        outline: 2px solid #800040;
        outline-offset: -2px;
        border-radius: 4px;
    }


/* =========================================================
   FIELD VALIDATION
   ========================================================= */

.login-field-error {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 28px;
}


.login-checkbox {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #800040;
    cursor: pointer;
}


.login-remember label {
    margin: 0;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

.login-submit {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 6px;
    background: #800040;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}


    .login-submit:hover {
        background: #6b0036;
        box-shadow: 0 5px 12px rgba(128, 0, 64, 0.20);
    }


    .login-submit:active {
        transform: translateY(1px);
    }


    .login-submit:focus {
        outline: none;
    }


    .login-submit:focus-visible {
        outline: 3px solid rgba(128, 0, 64, 0.25);
        outline-offset: 2px;
    }


    .login-submit svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
        display: block;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #ead3dc;
    color: #b77992;
    font-size: 11px;
    text-align: center;
}


.login-footer-divider {
    color: #cfa4b5;
}


/* =========================================================
   DISABLED
   ========================================================= */

.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 576px) {

    body.login-page {
        background-position: center center;
        background-attachment: scroll;
    }


    .login-page-wrapper {
        padding: 20px 15px;
    }


    .login-card {
        width: 100%;
        padding-left: 25px;
        padding-right: 25px;
    }


    .login-card-top {
        width: calc(100% + 50px);
        margin-left: -25px;
    }


    .login-logo {
        width: 78px;
        height: 78px;
    }


    .login-logo-wrapper {
        margin-top: 28px;
    }


    .login-header {
        margin-bottom: 30px;
    }


        .login-header h1 {
            font-size: 26px;
        }


        .login-header p {
            font-size: 13px;
        }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

    .login-page-wrapper {
        padding: 10px;
    }


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


    .login-card-top {
        width: calc(100% + 40px);
        margin-left: -20px;
    }


    .login-header h1 {
        font-size: 24px;
    }


    .login-header p {
        font-size: 12px;
    }
}


/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 20px;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

    .login-remember label {
        margin: 0;
        font-size: 13px;
        color: #60758a;
        cursor: pointer;
    }


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.login-forgot-password {
    font-size: 13px;
    font-weight: 600;
    color: #5A0F2E;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .login-forgot-password:hover {
        color: #3f0920;
        text-decoration: underline;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .login-options {
        gap: 10px;
    }

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