/* PhysioClínica Webmail */

body.task-login {
    background: #ffffff;
}

body.task-login #layout-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

body.task-login #logo {
    position: static;
    top: auto;
    max-height: 110px;
    max-width: 260px;
    margin: 0 0 28px 0;
}

body.task-login #login-form {
    position: static;
    top: auto;
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 34px 34px 26px;
    background: #ffffff;
    border: 1px solid #e3e8e8;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 70, 70, 0.10);
    box-sizing: border-box;
}

body.task-login #login-form .form-control {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #d7dddd;
}

body.task-login #login-form .form-control:focus {
    border-color: #178f95;
    box-shadow: 0 0 0 0.2rem rgba(23, 143, 149, 0.15);
}

body.task-login #rcmloginsubmit {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border-radius: 10px;
    background: #178f95;
    border-color: #178f95;
    font-weight: 700;
}

body.task-login #rcmloginsubmit:hover {
    background: #12787d;
    border-color: #12787d;
}

body.task-login #login-footer {
    margin-top: 22px;
    color: #8a9898;
    font-size: 12px;
}

body.task-login .physio-login-heading {
    margin: 0 0 22px 0;
    text-align: center;
}

body.task-login .physio-login-heading h2 {
    margin: 0;
    color: #1f3f42;
    font-size: 28px;
    font-weight: 700;
}

body.task-login .physio-login-heading p {
    margin: 8px 0 0;
    color: #7b8c8d;
    font-size: 14px;
    font-weight: 400;
}

body.task-login #login-footer {
    display: none !important;
}

body.task-login {
    background-image: url('../images/webmail_fundo.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.task-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

body.task-login #layout {
    position: relative;
    z-index: 1;
}

/* Fundo PhysioClínica fixo no login - modo claro e escuro */
body.task-login #layout-content,
html.dark-mode body.task-login #layout-content {
    background-image: url('../images/webmail_fundo.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

body.task-login,
html.dark-mode body.task-login {
    background-image: url('../images/webmail_fundo.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ícones de usuário e senha não recebem cursor/foco visual */
body.task-login #login-form .input-group-prepend,
body.task-login #login-form .input-group-prepend .input-group-text,
body.task-login #login-form .input-group-prepend .icon {
    pointer-events: none !important;
    user-select: none !important;
    caret-color: transparent !important;
}

/* Botão visualizar senha */
body.task-login .physio-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #7b8c8d;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.task-login .physio-password-toggle:hover {
    color: #178f95;
}

body.task-login .physio-password-toggle:focus {
    outline: none;
    box-shadow: none;
}

body.task-login .physio-password-toggle::before {
    content: "\f06e";
    font-family: Icons;
    font-weight: 900;
    font-size: 18px;
}

body.task-login .physio-password-toggle.is-visible::before {
    content: "\f070";
}

body.task-login input[name="_pass"] {
    padding-right: 50px !important;
}

/* Não exibir cursor de texto fora dos campos do login */
body.task-login,
body.task-login #layout,
body.task-login #layout-content,
body.task-login #login-form,
body.task-login #login-form *,
body.task-login .physio-login-heading {
    caret-color: transparent;
}

body.task-login input,
body.task-login textarea {
    caret-color: auto !important;
}

body.task-login #layout-content,
body.task-login #login-form,
body.task-login .physio-login-heading,
body.task-login #logo {
    cursor: default;
}

/* Cursor normal em toda a tela de login */
body.task-login,
body.task-login * {
    cursor: default !important;
}

/* Cursor de texto somente dentro dos campos */
body.task-login input[type="text"],
body.task-login input[type="email"],
body.task-login input[type="password"] {
    cursor: text !important;
}

/* Cursor de clique nos elementos interativos */
body.task-login button,
body.task-login a,
body.task-login .physio-password-toggle {
    cursor: pointer !important;
}

/* Correção definitiva dos ícones do login */
body.task-login #login-form .input-group-prepend,
body.task-login #login-form .input-group-prepend .input-group-text,
body.task-login #login-form .input-group-prepend .icon {
    pointer-events: auto !important;
    user-select: none !important;
    cursor: default !important;
}
