/* -------------------------------------------------------------------------------------------------------------------*/
/* Recursos generales importados                                                                                      */
/* -------------------------------------------------------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css?family=Lato:700,400,300,100');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700');

/* -------------------------------------------------------------------------------------------------------------------*/
/* Definiciones generales                                                                                             */
/* -------------------------------------------------------------------------------------------------------------------*/

body * {
    box-sizing: border-box;
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr,
address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var,
b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot,
thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header,
hgroup, menu, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    background: transparent;
}

body {
    font-size: 14px;
    font-family: Verdana, sans-serif;
    line-height: 1.4em;
    background: #eee;
}

nav ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

input, select {
    vertical-align: middle;
}

.button-link {
    background:none!important;
    border:none!important;
    padding:0!important;
    font-family:arial,sans-serif;
    color:#069;
    text-decoration:underline;
    cursor:pointer;
    border-radius:0 !important;
}

input::placeholder {
    font-weight: 700;
    opacity: 0.7;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Cursores para elementos interactivos */
a[href],
.btn,
button,
[role="button"],
input[type="submit"],
input[type="button"],
label[for],
[onclick] {
    cursor: pointer !important;
}

/* Forzar cursor de texto en controles de ingreso, sin importar el padre */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    cursor: text !important;
}

/* Deshabilitacion de cursores segun el caso */
.btn.disabled,
.btn[disabled],
button[disabled],
input[disabled] {
    cursor: not-allowed !important;
}

/* -------------------------------------------------------------------------------------------------------------------*/
/* Header y containers generales                                                                                      */
/* -------------------------------------------------------------------------------------------------------------------*/

#container {
    width: 100%;
    max-width: 960px; /* mantiene límite en desktop */
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

body#cas {
    font-family: 'RobotoC', serif;
    background: #1A2E35;
    min-height: 100vh;
}

#cas .btn-submit {
    background: #70ba61;
    border: 0;
    padding: 10px 25px;
    font-weight: normal;
    color: white;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    font-size: 1.25em;
}

#cas .btn-reset {
    background: #eee;
    padding: 10px 20px;
    border: 0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

a:link, a:visited {
    color: #2F64BA;
}

a:hover {
    color: #a0b757; }

p {
    margin-bottom: 1.4em;
}

header {
    overflow: hidden;
    padding: 20px 0;
}

/* -------------------------------------------------------------------------------------------------------------------*/
/* Logo                                                                                                               */
/* -------------------------------------------------------------------------------------------------------------------*/

#logo {
    color: #fff;
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
}

a#logo {
    display: block;
    width: 100%;
    max-width: 196px;       /* límite en desktop */
    height: auto;           /* dejar que fluya */
    aspect-ratio: 196 / 60; /* mantener relación de aspecto aproximada */
    margin: 0 auto;         /* centrar */

    background-image: url('../images/logos/logo-anteltv.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; /* escala dentro del contenedor */
}

/* Escondemos el img del fragmento para que no duplique el logo */
#logo-image { display: none; }

/* -------------------------------------------------------------------------------------------------------------------*/
/* Contenido y mensajeria                                                                                             */
/* -------------------------------------------------------------------------------------------------------------------*/

#content {
    overflow: hidden;
    padding: 0;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

#msg {
    padding: 20px;
    margin-bottom: 40px;
}

#msg.errors {
    border: 2px dotted #BB0000;
    color: #BB0000;
}

#msg.success {
    border: 2px dotted #390;
    color: #390;
}

#msg.info {
    border: 2px dotted #008;
    color: #008;
}

#msg.question {
    border: 2px dotted #390;
    color: #390;
}

#msg.warn {
    border: 2px dotted #960;
    color: #960;
}

.errors {
    border: 2px dotted #BB0000;
    color: #BB0000;
    padding-top: 5px;
    margin-bottom: 5px;
    background-color: transparent !important;
}

.alert.alert-danger {
    border-radius: 4px;
    border: 1px solid #ad262b;
}

.alert.alert-danger span {
    color: cyan;
    font-weight: normal;
    max-width: 980px;
    margin: 0 auto;
    display: block;
}

div.alert.alert-danger, div.alert.alert-warning {
    background-color: #1A2E35 !important;
    color: #FFF;
}

/* -------------------------------------------------------------------------------------------------------------------*/
/* Login                                                                                                              */
/* -------------------------------------------------------------------------------------------------------------------*/

.login #content {
    background: transparent;
}

#login {
    padding: 24px;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: top;
}

#login .login-header {
    text-align: center;
    padding: 20px;
    background-color: #d5d5d5;
    margin: -30px -30px 10px;
}

#login .login-header h2 {
    font-weight: 300;
    color: black;
    font-family: Lato, serif;
    margin-top: 0;
}

#login .login-header .fa-circle {
    color: #1490b3;
}

#login .row {
    margin: 0 0 10px;
}

#login label {
    display: block;
    margin-bottom: 2px;
    color: #FFF;
}

#login .check label {
    display: inline;
}

#login input[type=text], #login input[type=password] {
    font-size: 1.3em;
    padding: 5px;
    width: 100%;
    color: #000 !important;
}

#login .btn-row {
    text-align: center;
    padding-top: 0 !important;
}

#login .btn-submit {
    background: #077472;
    border: 0;
    padding: 10px 25px;
    font-weight: normal;
    color: white;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    font-size: 1.25em; }

#login .btn-reset {
    background: #077472;
    padding: 10px 20px;
    border: 0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    display: none;
}

#login .btn-submit:hover {
    background: #819e73;
}

#login .btn-reset:hover {
    background: #819e73;
}

.login {}

.login .container {}

.login .container header {
    padding: 39px 0 16px 0;
}

.login .container #content #login {
    max-width: 450px;
    margin: 0 auto;
}

.login .container #content #login form section {
    margin: 0 auto;
    padding-top: 30px;
}

.login .container #content * {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    color: #FFF
}

.login .container #content h2 {
    color: #FFF;
    font-size: 22px;
    font-weight: bold;
}

.login .container #content h3 {
    color: #777777;
    font-size: 16px;
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 45px;
}

.login .container #content .top-row a.top-row-right span {}

.login .container #content p {
    margin: 0;
}

.login .container #content a{
    color: #2F64BA;
}

.login .container #content a span {
    color: #2DD4BF;
}

.login .container #content a:focus,
.login .container #content a:hover{
    color: #025aa3;
}

.login .container #content a.nuevaCuenta span{
    font-size: 18px;
}

.login .container #content label{
    font-size: 14px;
    font-weight: normal;
    margin: 0.25em 0;
}

.login .container #content .check label{
    font-size: 14px;
    margin-left: 5px;
}

.login .container #content input {
    border: 1px solid #222222;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 0 15px;
    height: 45px;
}

.login .container #content input[type=submit], .login .container #content input[type=button] { height: auto; }

.login .container #content input:hover,
.login .container #content input:focus{
    border: 1px solid #66afe9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

.login .container #content .btn {
    background: #4ec6c6;
    border: #4ec6c6;
    font-size: 22px;
    padding: 0.5em;
    margin: 5px 0 40px 0;
    width: 100%;
}

.login .container #content .btn:hover,
.login .container #content .btn:focus {
    background: #64c3c6;
    border: #64c3c6;
}

/* ----------------------------------------------------------------------------------------------------------------- */
/* Formulario de ingreso de datos                                                                                    */
/* ----------------------------------------------------------------------------------------------------------------- */

#fm1 .row input[type=text],
#fm1 .row input[type=password] {
    max-width: 100%;
    min-width: 0;
}

.top-row {
    display: flex;
}

.top-row-left{
    margin-right: auto;
}

.top-row-right{
    margin-left: auto;
    padding: 0.25rem 0;
}

#capslock-on {
    color: firebrick;
}

/* ----------------------------------------------------------------------------------------------------------------- */
/* Footer                                                                                                            */
/* ----------------------------------------------------------------------------------------------------------------- */

#footer { width: 100%; }

#footer .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

footer {
    padding: 25px 0;
    z-index: 1;
    margin-top: 50px;
    border-top: 1px solid #e3e3e3;
}

footer p {
    color: #FFF;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 14px;
    margin: 0 0 2px;
}

footer a {
    color: #2DD4BF;
    text-decoration: none;
}

footer a:hover, footer a:focus { color: #64c3c6; }

footer .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

footer .logo {
    margin: 0 10px 0 0;
    width: 60px;
    height: 30px;
    background: url('../images/logos/logo-anteltv.svg') no-repeat center center;
    background-size: contain;
    flex: 0 0 60px;
}

footer .subtitle {
    align-self: flex-start;
    flex: 1 1 auto;
    min-width: 220px;
}

footer .terms {
    text-align: right;
    flex: 0 0 auto;
}

footer .terms p { font-weight: 600; }

footer .terms a {
    font-size: 13px;
    line-height: 14px;
    margin-left: 20px;
    font-family: 'Roboto Condensed', sans-serif;
}

footer {
    padding: 20px;
    color: black;
}

footer a:link, footer a:visited {
    color: darkgray;
}

.login .container footer {
    margin-top: 2em;
    padding: 1em 0;
    border-top: 1px solid #e3e3e3;
}

/* ----------------------------------------------------------------------------------------------------------------- */
/* Secciones informativas                                                                                            */
/* ----------------------------------------------------------------------------------------------------------------- */

#sidebar {
    width: auto;
}

#notices h2 {
    font-size: 1.25em;
}

#notices p {
    font-size: 10pt;
}

#notices ul.list-group .fa {
    margin-right: 7px;
}

#notices .well h3 {
    margin-top: 0;
    font-size: 1.25em;
}

#notices .well ul.list-group {
    margin-bottom: 0;
}

.row-detail-wrapper {
    background-color: #d9edf7; }

#welcomeMessage {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 2em 0;
}

#welcomeMessage p{
    color: #9e9e9e;
    font-size: 12px !important;
}

#welcomeMessage {
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------------------------------------------------*/
/* Login OTP                                                                                                          */
/* -------------------------------------------------------------------------------------------------------------------*/

body.login.otp #content {
    background: transparent;
}

/* Contenedor de la caja OTP */
body.login.otp .otp-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px;
}

/* Título y textos */
body.login.otp .otp-title {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #FFF !important;
    line-height: 1.3 !important;
}

/* Más espacio entre líneas y bloques de texto */
body.login.otp .otp-box p {
    margin-bottom: 1.1rem !important;
    line-height: 1.6 !important;
}

/* Destinos (sms/mail) */
body.login.otp .otp-destinations p {
    margin-bottom: 0.75rem;
}

/* Acciones (botones) */
body.login.otp .otp-actions .btn {
    white-space: normal;      /* permite salto de línea en el texto del botón */
    text-align: center;
    margin-bottom: 12px;
}

/* Espaciado vertical entre bloques directos dentro de la caja */
body.login.otp .otp-box > * + * {
    margin-top: 0.75rem;
}

/* Estilos de la lista de destinos */
body.login.otp .otp-destinations-list {
    margin: 0.5rem 0 1.25rem 1.25rem; /* deja aire y sangría del listado */
}

body.login.otp .otp-destinations-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Texto base (p, li) como en login */
body.login.otp .otp-box p,
body.login.otp .otp-box li,
body.login.otp .otp-box a,
body.login.otp .otp-box label {
    font-family: 'Roboto Condensed', sans-serif; /* igual que login */
    font-size: 14px;                              /* igual que login */
}

body.login.otp .otp-box .otp-actions .btn {
    font-size: 22px;
    padding: 0.5em;
    white-space: normal;
    text-align: center;
    margin-bottom: 12px;
}

/* Contenedor y centrado de los inputs del codigo */
body.login.otp .otp-code-wrapper {
    display: flex;
    gap: 0.5rem;
    justify-content: center; /* centra horizontalmente */
    margin: 0.5rem 0 1rem 0;
}

/* Inputs de 1 caracter para el codigo */
body.login.otp .otp-code-input {
    width: 1.8ch;
    min-width: 1.8ch;
    height: 3rem;
    text-align: center;
    font-size: 1.6rem;
    line-height: 3rem;
    padding: 0;
    color: #000;
    background-color: #fff;
    border: 1px solid #222;
    border-radius: 3px;
}

/* Centrado de reCAPTCHA en esta vista */
body.login.otp .otp-captcha-wrap {
    display: flex;
    justify-content: center;
}

/* ----------------------------------------------------------------------------------------------------------------- */
/* Media queries                                                                                                     */
/* ----------------------------------------------------------------------------------------------------------------- */

@media only screen and (max-width: 960px) {
    header {
        padding: 20px;
    }
    #content {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        padding: 0;
    }
}

@media only screen and (max-width: 855px) {
    header h1 {
        font-size: 1em;
        width: 70px;
        height: 40px;
        background-size: 70px 40px;
    }

    #login {
        float: none;
        width: 100%;
    }

    #fm1 .row input[type=text],
    #fm1 .row input[type=password] {
        width: 100%;                        /* ocupar el ancho disponible */
        padding: 10px;                      /* padding cómodo en móviles */
        box-sizing: border-box;             /* incluye padding en el cálculo del ancho */
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }

    #fm1 .row .btn-submit {
        outline: none;
        -webkit-appearance: none;
        border: 0;
        background: #70ba61;
        color: white;
        width: 100%;
        padding: 10px 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
    }

    #fm1 .row .btn-reset {
        display: none;
    }

    #sidebar {
        margin-top: 20px;
    }

    #sidebar .sidebar-content {
        padding: 0;
    }
}

@media (max-width: 767px) {
    footer .logo,
    footer .subtitle,
    footer .terms {
        flex: 1 1 100%;
        text-align: center;
        margin: 6px 0;
    }

    footer .terms a { display: inline-block; margin: 0 10px; }
}

@media only screen and (max-width: 599px) {
    body#cas {
        background: #1A2E35;
    }

    #container {
        padding-left: 15px;
        padding-right: 15px;
    }

    a#logo {
        max-width: 175px;
    }

    .login .container header {
        padding: 7px 0 0 0;
    }

    .login .container #content #login {
        padding: 0;
        margin: 30px 0 0;
        width: 100%;
        max-width: none;
        border: none;
    }

    .login .container #content h2 {
        margin: 0;
        padding-left: 20px;
    }

    .login .container #content h3 {
        font-size: 14px;
        line-height: 35px;
    }

    .login .container #content .btn {
        margin-bottom: 30px;
        font-size: 18px;
        padding: 0.7em;
    }

    .login .container #content #login form section {
        padding: 35px 20px 0;
    }

    .alert.alert-danger {
        margin: 0 19px 20px;
    }

    #footer > div.container > div.row {
        padding: 0 10px;
    }

    /* Mantener gutters en móvil incluso si #container los quita en otras vistas */
    body.login.otp #container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .otp-box {
        padding: 0 20px !important;
    }

    .otp-instruction {
        text-align: center !important;;
    }

    /* 1) Esconder logo */
    footer .logo { display: none; }

    /* 2) Apilar y reordenar */
    footer .row {
        display: flex;
        justify-content: center;  /* 4) centrar verticalmente en pantalla */
        align-items: center;      /* centrar horizontalmente */
        text-align: center;       /* centrar texto */
    }

    /* 3) terms arriba, subtitle abajo */
    footer .terms { order: -1; }
    footer .subtitle { order: 0; }

    /* Espaciado entre bloques */
    footer .terms, footer .subtitle { margin: 6px 0; }
}

@media (max-width: 480px) {
    body.login.otp .otp-code-input {
        height: 2.6rem;
        font-size: 1.4rem;
    }
}


