@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
   
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}
a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}

/* painel esquerdo */
.container {
    width: 390px;
    min-width: 390px;
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 10px 0 30px rgba(8, 31, 61, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    padding: 28px 28px 22px;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.sign-in-container {
    width: 100%;
    z-index: 2;
}

form {
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex: 1;
    background: transparent;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* marca */
.logoImage {
    width: 210px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px auto;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    background: #eef5fb;
    color: #0A67A9;
    font-size: 13px;
    font-weight: 700;
    margin: 0 auto 34px auto;
}

.login-badge .pi,
.login-badge i {
    font-size: 14px;
    line-height: 1;
}

.login-title {
    font-size: 22px;
    line-height: 1.18;
    font-weight: 800;
    color: #1f2b3d;
    margin: 0 auto 16px auto;
    max-width: 260px;
    text-align: center;
}

.login-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #5f6c7b;
    margin: 0 auto 30px auto;
    max-width: 300px;
    text-align: center;
}

/* campos */
.input-group {
    margin-bottom: 12px;
}

.ui-inputgroup {
    width: 100%;
    display: flex;
    align-items: stretch;
    border: 1px solid #d9e2ea;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: .25s ease;
}

.ui-inputgroup:focus-within {
    border-color: #0A67A9;
    box-shadow: 0 0 0 3px rgba(10, 103, 169, 0.10);
}

.ui-inputgroup-addon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    position: relative;
    background: #f8fafc !important;
    border: none !important;
    border-right: 1px solid #e6edf3 !important;
    border-radius: 0 !important;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.ui-inputgroup-addon .pi,
.ui-inputgroup-addon i {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #0A67A9 !important;
    width: auto !important;
    height: auto !important;
}

.ui-inputfield,
.ui-inputtext,
input[type="text"],
input[type="password"] {
    width: 100%;
    height: 52px;
    border: none !important;
    background: #fff !important;
    padding: 0 14px !important;
    font-size: 15px;
    color: #243447;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

::placeholder {
    color: #7f8a98;
    opacity: 1;
}

/* botão mostrar senha */
#showPassword {
    width: 52px;
    min-width: 52px;
    height: 52px;
    position: relative !important;
    border: none !important;
    border-left: 1px solid #e6edf3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#showPassword .ui-button-text {
    display: none !important;
}

#showPassword .ui-button-icon-left,
#showPassword .ui-button-icon-right,
#showPassword .ui-icon,
#showPassword .pi {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #0A67A9 !important;
    width: auto !important;
    height: auto !important;
}

/* botão entrar */
.login-button-wrap {
    margin-top: 14px;
}

.login-button-wrap .ui-button,
.login-button-wrap button,
button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0A67A9 0%, #09578f 100%) !important;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(10, 103, 169, 0.20);
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-button-wrap .ui-button:hover,
.login-button-wrap button:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(10, 103, 169, 0.24);
}

/* badge rodapé */
.login-footer-wrap {
    margin-top: auto;
    padding-top: 28px;
    padding-bottom: 8px;
    display: flex;
    justify-content: center;
}

.login-footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f4f7fa;
    color: #8d99a8;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e6edf3;
}

.login-footer-badge .pi,
.login-footer-badge i {
    font-size: 13px;
    line-height: 1;
}

/* esconde painel antigo */
.overlay-container {
    display: none !important;
}

/* token */
.token-container {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 1px solid #e1e8ef;
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    width: 100%;
    margin: 0 auto;
    gap: 14px;
}

.token-card {
    background: white;
    padding: 28px 22px;
    border-radius: 18px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.token-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.token-icon-circle {
    background: linear-gradient(135deg, #0A67A9 0%, #09578f 100%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(10, 103, 169, 0.24);
}

.token-icon-circle i {
    font-size: 28px;
    color: white;
}

.token-title-wrapper {
    text-align: center;
    margin-bottom: 8px;
}

.token-title {
    font-size: 21px;
    font-weight: 800;
    color: #243447;
    display: block;
    margin-bottom: 6px;
}

.token-subtitle {
    font-size: 13px;
    color: #6c7b8d;
    line-height: 1.5;
}

.token-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 18px 0;
}

.token-badge {
    background: #eef5fb;
    padding: 10px 18px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 18px;
    border: 1px solid #d8e8f7;
}

.token-badge-label {
    font-size: 15px;
    font-weight: 700;
    color: #0A67A9;
}

.token-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.token-input {
    width: 150px;
    height: 56px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    padding: 5px;
    border: 2px solid #dbe5ef;
    border-radius: 14px;
    letter-spacing: 8px;
    transition: all 0.3s ease;
}
.token-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    width: 100%;
}

.token-field {
    width: 100%;
    max-width: 240px;
    height: 58px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #dbe5ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(10, 103, 169, 0.06);
    transition: all 0.25s ease;
}

.token-field:focus-within {
    border-color: #0A67A9;
    box-shadow: 0 0 0 4px rgba(10, 103, 169, 0.10);
}

.token-field-icon {
    width: 54px;
    min-width: 54px;
    height: 100%;
    position: relative;
    background: #f6f9fc;
    border-right: 1px solid #e2ebf3;
}

.token-field-icon .pi,
.token-field-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #0A67A9;
    line-height: 1;
}

.token-input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 0 16px !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: 10px !important;
    color: #1f2b3d !important;
    border-radius: 0 !important;
}

.token-input::placeholder {
    color: #8da0b3;
    opacity: 1;
}
.token-input:focus {
    border-color: #0A67A9;
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 103, 169, 0.10);
}

.token-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.token-btn-validate {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

.token-btn-back {
    background: #f7fafc !important;
    color: #4a5568 !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

.token-footer {
    text-align: center;
    color: #6e7a88;
    font-size: 13px;
    font-weight: 600;
}

/* responsivo */
@media (max-width: 1200px) {
    .container {
        width: 370px;
        min-width: 370px;
    }

    .form-container {
        padding: 28px 24px 22px;
        padding-top: 60px;
    }

    .logoImage {
        width: 195px;
    }
}

@media (max-width: 768px) {
    body {
        background: #ffffff;
    }

    .container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 100vh;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.96);
    }

    .form-container {
        padding: 26px 22px 20px;
        padding-top: 68px;
    }

    .logoImage {
        width: 200px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .token-buttons {
        flex-direction: column;
    }
}