﻿body, html {
    height: 100%;
    margin: 0;
}

.login-container {
    display: flex;
    height: 100vh;
}

.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px;
    position: relative;
}

    .login-form form {
        width: 100%;
        max-width: 400px;
    }


.login-image {
    background-image: url('../../../branding/redsmart.api4it.com/disenador-grafico.jpg');
    background-size: cover;
    background-position: center;
    flex: 1;
    display: block; /* Asegurarse de que se muestre por defecto */
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 100px;
}

    .logo-container img {
        max-height: 100%;
        max-width: auto;
    }

.btn-custom {
    background-color: rgb(0, 184, 122);
    border-color: rgb(0, 184, 122);
    color: white;
}

    .btn-custom:hover {
        background-color: #2c2b2b;
        border-color: #2c2b2b;
        color: white;
    }

.btn-custom2 {
    background-color: gray;
    border-color: gray;
    color: white;
}

    .btn-custom2:hover {
        background-color: silver;
        border-color: silver;
        color: white;
    }

.forgot-password {
    color: rgb(0, 184, 122);
}

    .forgot-password:hover {
        color: rgb(0, 150, 100);
    }


:where([autocomplete=one-time-code]) {
    --otp-digits: 6 !important; /* length */
    --otc-ls: 2.3ch !important;
    --otc-gap: 1.25 !important;
    /* private consts */
    --_otp-bgsz: calc(var(--otc-ls) + 1ch) !important;
    all: unset !important;
    background: linear-gradient(90deg, var(--otc-bg, #EEE) calc(var(--otc-gap) * var(--otc-ls)), transparent 0 ) 0 0 / var(--_otp-bgsz) 100% !important;
    caret-color: var(--otc-cc, #333) !important;
    clip-path: inset(0% calc(var(--otc-ls) / 2) 0% 0%) !important;
    font-family: ui-monospace, monospace !important;
    font-size: var(--otc-fz, 1.8em) !important;
    inline-size: calc(var(--otc-digits) * var(--_otp-bgsz)) !important;
    letter-spacing: var(--otc-ls) !important;
    padding-block: var(--otc-pb, 1ch) !important;
    padding-inline-start: calc(((var(--otc-ls) - 1ch) / 2) * var(--otc-gap)) !important;
    border: none !important;
    border-bottom: 0px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-weight: bold !important;
    text-align: left !important;
    width: 315px !important; /* Add this line */
    max-width: 100% !important; /* Add this line */
}


/* Botón Flotante Redondo - Esquina Superior Derecha */
.pwa-install-btn {
    position: fixed;
    top: 20px; /* Cambiado de bottom a top */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: rgb(0, 184, 122);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    border: none;
    transition: transform 0.3s;
    display: none; /* Se muestra por JS */
}

    .pwa-install-btn:hover {
        transform: scale(1.1);
        background-color: rgb(0, 150, 100);
        color: white;
    }

/* Banner discreto para iOS - Se mantiene abajo para no estorbar la vista superior */
#ios-install-banner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none; /* Se muestra por JS */
    border: 1px solid rgb(0, 184, 122);
}

.ios-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ios-text {
    font-size: 14px;
    margin-right: 10px;
}

    .ios-text i {
        color: #007aff;
    }