/* ==========================================================
   Municipalidad de Ramallo - Webmail Login Theme
   Se aplica solamente a body.wm (Webmail)
   ========================================================== */

body.wm {
    min-height: 100vh;
    margin: 0;
    color: #17263d;
    background:
        radial-gradient(circle at 82% 16%, rgba(137, 196, 38, .55) 0%, rgba(137, 196, 38, 0) 34%),
        radial-gradient(circle at 16% 82%, rgba(0, 112, 84, .55) 0%, rgba(0, 112, 84, 0) 38%),
        linear-gradient(135deg, #006b4e 0%, #159447 48%, #8ac52a 100%);
    background-attachment: fixed;
}

/* Oculta el footer visual de cPanel solamente en Webmail */
body.wm > .copyright {
    display: none;
}

body.wm #login-wrapper {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.wm #login-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 46px 48px 34px;
    background: rgba(255, 255, 255, .98);
    border-radius: 22px;
    box-shadow:
        0 30px 70px rgba(1, 45, 32, .25),
        0 8px 22px rgba(1, 45, 32, .12);
}

body.wm #login-sub-container {
    position: static;
    width: 100%;
    left: auto;
}

body.wm #login-sub-header {
    height: auto;
    padding: 0;
    margin: 0 0 30px;
    text-align: center;
}

body.wm #login-sub-header .main-logo {
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

body.wm .muni-login-title {
    margin: 34px 0 0;
    text-align: center;
    color: #111d30;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

body.wm .muni-login-subtitle {
    margin: 8px 0 10px;
    text-align: center;
    color: #718198;
    font-size: 18px;
    font-weight: 400;
}

body.wm .muni-accent {
    width: 150px;
    height: 5px;
    margin: 18px auto 4px;
    border-radius: 100px;
    background: linear-gradient(
        90deg,
        #8bc425 0 33.33%,
        #f5a019 33.33% 66.66%,
        #55bbe6 66.66% 100%
    );
}

body.wm #login-sub {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding: 0;
}

body.wm #forms {
    position: static;
    width: 100%;
}

body.wm #login_form {
    position: static;
    width: 100%;
    visibility: visible;
}

body.wm .input-req-login {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.wm .input-field-login.icon {
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    margin: 0 0 18px;
    border: 1px solid #b9c5d3;
    border-radius: 10px;
    background-color: #fff;
    background-position: 18px center;
    background-repeat: no-repeat;
    box-shadow: 0 1px 2px rgba(20, 40, 60, .02);
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

body.wm .input-field-login.icon:focus-within {
    border-color: #159447;
    box-shadow: 0 0 0 3px rgba(21, 148, 71, .12);
}

body.wm .input-field-login.icon input.std_textbox {
    box-sizing: border-box;
    width: calc(100% - 58px);
    height: 54px;
    min-width: 0;
    margin: 1px 4px 0 52px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #17263d;
    font-size: 17px;
}

body.wm .input-field-login.icon input.std_textbox::placeholder {
    color: #8a99ad;
    opacity: 1;
}

body.wm .controls {
    width: 100%;
}

body.wm .login-btn {
    width: 100%;
    padding-top: 6px;
    float: none;
}

body.wm .login-btn button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #079d4c 0%, #12ad54 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(6, 137, 65, .18);
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

body.wm .login-btn button:hover {
    background: linear-gradient(90deg, #078b44 0%, #0d9b4a 100%);
    box-shadow: 0 10px 24px rgba(6, 137, 65, .25);
    transform: translateY(-1px);
}

body.wm .reset-pw {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 0 20px;
    float: none;
    text-align: right;
}

body.wm .reset-pw a {
    color: #09964a;
    font-size: 14px;
    font-weight: 600;
}

body.wm .reset-pw a:hover {
    color: #05763a;
    text-decoration: underline;
}

body.wm .muni-authorized {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid #d8e0e8;
    text-align: center;
    color: #76869b;
    font-size: 13px;
}

body.wm .muni-authorized .lock {
    margin-right: 7px;
}

body.wm .muni-dti {
    margin: 26px auto 0;
    text-align: center;
}

body.wm .muni-dti img {
    display: block;
    width: auto;
    max-width: 245px;
    max-height: 78px;
    margin: 0 auto;
    object-fit: contain;
}

body.wm .muni-footer {
    margin-top: 22px;
    text-align: center;
    color: #8896a8;
    font-size: 12px;
}

body.wm .muni-footer a {
    color: #536b87;
    font-weight: 600;
    text-decoration: none;
}

body.wm .muni-footer a:hover {
    color: #159447;
}

/* Mensajes de error / logout */
body.wm #notify {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 16px;
}

body.wm .error-notice,
body.wm .success-notice,
body.wm .warn-notice,
body.wm .info-notice {
    box-sizing: border-box;
    border-radius: 10px;
}

/* Ocultamos selector de idioma del login para mantener interfaz limpia */
body.wm #locale-footer {
    display: none;
}

/* Responsive */
@media (max-width: 620px) {
    body.wm #login-wrapper {
        padding: 20px 14px;
    }

    body.wm #login-container {
        max-width: 100%;
        padding: 34px 24px 28px;
        border-radius: 18px;
    }

    body.wm #login-sub-header .main-logo {
        max-width: 320px;
    }

    body.wm .muni-login-title {
        margin-top: 28px;
        font-size: 28px;
    }

    body.wm .muni-login-subtitle {
        font-size: 16px;
    }

    body.wm .input-field-login.icon {
        height: 56px;
    }

    body.wm .input-field-login.icon input.std_textbox {
        height: 52px;
        font-size: 16px;
    }

    body.wm .muni-dti img {
        max-width: 210px;
    }
}

/* ==========================================================
   Ajuste compacto para pantallas con poca altura
   ========================================================== */

@media (max-height: 900px) {
    body.wm #login-wrapper {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    body.wm #login-container {
        padding-top: 26px;
        padding-bottom: 22px;
    }

    body.wm #login-sub-header {
        margin-bottom: 18px;
    }

    body.wm #login-sub-header .main-logo {
        max-width: 320px;
    }

    body.wm .muni-login-title {
        margin-top: 18px;
        font-size: 29px;
    }

    body.wm .muni-login-subtitle {
        margin-top: 4px;
        font-size: 16px;
    }

    body.wm .muni-accent {
        margin-top: 10px;
        margin-bottom: 2px;
        height: 4px;
    }

    body.wm .input-field-login.icon {
        height: 52px;
        margin-bottom: 12px;
    }

    body.wm .input-field-login.icon input.std_textbox {
        height: 48px;
    }

    body.wm .login-btn button {
        min-height: 50px;
    }

    body.wm .reset-pw {
        padding: 10px 0 12px;
    }

    body.wm .muni-authorized {
        margin-top: 6px;
        padding-top: 14px;
    }

    body.wm .muni-dti {
        margin-top: 16px;
    }

    body.wm .muni-dti img {
        max-width: 190px;
        max-height: 60px;
    }

    body.wm .muni-footer {
        margin-top: 12px;
    }
}

@media (max-height: 720px) {
    body.wm #login-wrapper {
        justify-content: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.wm #login-container {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    body.wm #login-sub-header .main-logo {
        max-width: 270px;
    }

    body.wm .muni-login-title {
        margin-top: 12px;
        font-size: 25px;
    }

    body.wm .muni-login-subtitle {
        font-size: 14px;
    }

    body.wm .muni-dti img {
        max-width: 165px;
    }
}
