body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.container {
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}

/* header */

header {
    display: flex;
    justify-content: center;
    background-color: #2160bd;
    background-image: linear-gradient(to bottom, #2160bd, #3a72bc);
    background-image: -webkit-linear-gradient(top, #2160bd, #3a72bc);
}

header .wrapper-header {
    max-width: 1440px;
    display: flex;
    flex: 1;    
    padding: 20px 18px 15px 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.figure-header {
    margin: 0px;
}

.figure-header figure {
    margin: 0px;
}

.text-header {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 10px;
    color: #fff;
    line-height: 0.9;
}

.text-header p {
    margin: 0;
    font-size: 0.875rem;
}

.text-header h1 {
    margin: 6px 0;
    line-height: 1.1;
    font-size: 2.5rem;
}

.text-header h2 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* main */

main {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

main .wrapper-main {
    max-width: 1440px;
    display: flex;
    flex: 1; 
    flex-direction: column;
    padding: 30px 20px 20px 20px;
    flex-wrap: wrap;
    color: rgb(39, 39, 39);
}

main .wrapper-main.sso-main {
    align-items: center;
    justify-content: center;
}

main .wrapper-main .text-main {
}

main .wrapper-main .text-main h1 {
    font-size: 1.75rem;
    margin: 0;
}

main .wrapper-main .text-main p {
    line-height: 1.2;
}

.form-main {
    display: flex;
}

.form-main form {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
}

.form-main form .form-field {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.form-main form .form-field label {
    margin-bottom: 5px;
    font-size: 1rem;
}

.form-main form .form-field input {
    border: 1px solid rgb(160, 159, 159);
    border-radius: 5px;
    padding: 10px 5px;
    font-size: 1rem;
    max-width: 600px;
    text-transform: uppercase;
}

.form-main form .form-field input:focus {
    border: 2px solid #2160bd;
}

::-webkit-input-placeholder {
    text-transform: uppercase;
}  
  
:-moz-placeholder { 
     text-transform: uppercase; 
}
  
::-moz-placeholder {  
     text-transform: uppercase;
}
  
:-ms-input-placeholder {  
     text-transform: uppercase; 
}

.form-main form .form-field input[type="number"] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-main form .form-field select {
    border: 1px solid rgb(160, 159, 159);
    border-radius: 5px;
    padding: 10px 5px;
    font-size: 1rem;
    max-width: 600px;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 10px;
}

.form-main form .form-field select:focus {
    border: 2px solid #2160bd;
}

.form-main form .form-field small{
    margin-top: 5px;
    font-size: 0.688rem;
}

.form-main form .form-field .value {
    font-weight: 700;
}

.form-main form .form-btn {
    display: flex;
    margin-top: 20px;
}

.form-main form .form-btn button:not(:disabled) {
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid #2160bd;
    padding: 15px 20px;
    color:  #2160bd;
    font-size: 0.875rem;
    font-weight: 600;
    transition-duration: 0.5s;
}

.form-main form .form-btn button:hover:not(:disabled) {
    color: #fff;
    background-color:  #2160bd;
    transition-duration: 0.5s;
}

.btn {
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    transition-duration: 0.5s;
    padding: 15px 20px;
    background-color: rgb(224, 223, 223);
    min-width: 250px;
    text-align: center;
}

.btn-primary {
    border: 2px solid #2160bd;
    color:  #2160bd;
}

.btn-primary:hover:not(:disabled) {
    color: #fff;
    background-color:  #2160bd;
    transition-duration: 0.5s;
}

.btn-primary:disabled {
    border: 2px solid #4d93fc !important;
}

.btn-img-loading {
    width: 25px;
    height: 100%;
}

/* iframe */
.iframe-epag {
    margin: 0;
    padding: 0;
    border: 0;
    width: 1px;
    height: 100%;
    min-width: 100%;
}

.wrapper-iframe {
    flex: 1;
    height: 500px;
}

.wrapper-button {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;   
}

/* footer */

footer {
    display: flex;
    justify-content: center;
    background-color: #2160bd;
    background-image: linear-gradient(to bottom, #2160bd, #3a72bc);
    background-image: -webkit-linear-gradient(top, #2160bd, #3a72bc);
}

footer .wrapper-footer {
    max-width: 1440px;
    display: flex;
    flex: 1;    
    padding: 20px 10px 15px 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.text-footer {
    flex: 1;
    padding-left: 20px;
    color: #fff;
    line-height: 0.9;
}

.text-footer p {
    margin: 0px;
    font-size: 0.75rem;
}

@media only screen and (max-width: 600px) {
    .form-main form { 
        margin: 15px 0px;
    }
}

@media only screen and (max-width: 520px) {
    .form-main form .form-field select {
        width: 400px;
    }
}

@media only screen and (max-width: 444px) {
    .form-main form .form-field select {
        width: 300px;
    }
    .text-header {       
        padding-left: 0;
        text-align: center;
    }
}

@media only screen and (max-width: 340px) {
    .form-main form .form-field select {
        width: 200px;
    }
    .btn {
        min-width: 100px !important;
    }
}

@media only screen and (max-width: 290px) {
    .form-main form .form-field select {
        width: 180px;
    }

    .form-main form .form-field input {
        width: 180px;
    }

    .btn {
        min-width: 80px !important;
        padding: 10px 10px !important;
    }
    .text-header p {
        font-size: 0.875rem;
    }
    
    .text-header h1 {
        margin: 6px 0;
        line-height: 1.1;
        font-size: 1.25rem;
    }
    
    .text-header h2 {
        font-size: 0.625rem;
        font-weight: 500;
    }
}