:root{
    --glass-bg: rgba(148, 145, 159, 0.247);
    --glass-border: rgba(143, 140, 160, 0.482);
    --glass-highlight: rgba(162, 163, 175, 0.65);
    --glass-shadow: rgba(5, 2, 14, 0.386);
}

.form-container,
.form-container-blank {
    height: fit-content;
    width: 100%;
    height: fit-content;
    background-image: url("../images/form_backgrounds/form_pic_2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-container {
    padding: 10rem 0;
}

.form-container-blank {
    display: flex;
    background-image: none;
    background: none;
}

.reset-msg-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 6rem 0 12rem;
}

.welcome-container,
.msg-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 50%;
    margin: 0 auto 1rem;
}

.msg-container {
    justify-content: start;
}

.welcome-title,
.msg-title {
    color: black;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.msg-title {
    width: 100%;
    text-align: center;
}

.welcome-text,
.msg-text {
    color: black;
    font-size: 12px;
    text-align: justify;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.msg-text {
    font-size: 1rem;
}

.text-emphasis {
    font-weight: 600;
    color:#10559a;
}

.blank-card,
.glass-card {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    padding: 2rem 6rem;
    border-radius: 1rem;
    max-width: 45%;
}

.glass-card{
    position: relative;
    border-radius: 16px;
    background:
      /* glossy top highlight */
      linear-gradient(180deg, var(--glass-highlight) 0%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.02) 100%),
      /* subtle base tint */
      var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow:
      0 10px 30px var(--glass-shadow),
      inset 0 1px 0 rgba(255,255,255,0.25);
    /* the magic blur */
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
  
    /* fallback when backdrop-filter isn’t supported */
    background-clip: padding-box;         /* keep border sharp */
}

.form-header {
    display: flex;
    justify-content: center;
    width: 100%;
}

.form-title {
    color: #10559a;
    font-size: 3rem;
    font-weight: 700;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 1.3rem;
    cursor: default;
}

.form-fieldset {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #10559a;
    position: relative;
    border-radius: 12px;
    padding: 1rem 2.5rem 0;
    margin-bottom: 1rem;
}

.form-fieldset .form-legend {
    position: absolute;
    top: -0.8rem;
    left: 10%;
    z-index: 1;
    text-align: center;
    font-size: 1rem;
    background: white;
    width: fit-content;
    height: fit-content;
    padding: 0 0.5rem;
}

.form-field-container,
.form-field-container-50 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: rgb(255, 255, 255);
    width: 100%;
    height: 64px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 0.8rem;
}

.form-field-container-50 {
    width: 48%;
}

.form-fieldset .form-field-container {
    position: relative;
    width: 100%;
    z-index: 2;
}

.form-field-container .form-field-label,
.form-field-container-50 .form-field-label {
    display: flex;
    align-items: center;
    color: rgb(97, 97, 97);
    padding: 0.4rem 0.9rem;
    width: 100%;
    height: 100%;
    font-size: 140%;
    line-height: 1;

    transition: 
        height .22s ease,
        font-size .22s ease,
        padding .22s ease,
        margin-bottom .22s ease;
}

.form-field-container .form-field-label-toggle,
.form-field-container-50 .form-field-label-toggle {
    color: rgb(97, 97, 97);
    padding: 0;
    margin-bottom: 3px;
    width: 100%;
    height: 15%;
    font-size: 85%;
    
    transition: 
        height .22s ease,
        font-size .22s ease,
        padding .22s ease,
        margin-bottom .22s ease;
}

.form-field-container .form-field-label:hover,
.form-field-container-50 .form-field-label:hover {
    cursor: text;
}

.form-field-container .form-field,
.form-field-container .form-field:focus,
.form-field-container .form-field-toggle,
.form-field-container .form-field-toggle:focus,
.form-field-container-50 .form-field,
.form-field-container-50 .form-field:focus,
.form-field-container-50 .form-field-toggle,
.form-field-container-50 .form-field-toggle:focus {
    display: none;
    opacity: 0;
    color: black;
    outline: none;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    width: 100%;
    height: 80%;
    font-size: 140%;
    line-height: 1;
    transition: opacity 1s ease;
    cursor: default;
}

.form-field-container .form-field-toggle,
.form-field-container .form-field-toggle:focus,
.form-field-container-50 .form-field-toggle,
.form-field-container-50 .form-field-toggle:focus {
    display: inline;
    opacity: 1;
    cursor: text;
    transition: opacity 1s ease;
}

.form-field-password {
    width: 80% !important;
    margin-right: 0;
}

.password-toggle,
.password-toggle-visible {
    display: none;
    opacity: 0;
    flex: 1;
    text-align: end;
    cursor: default;

    transition: opacity .22s ease;
}

.password-toggle-visible {
    display: inline;
    opacity: 1;
    cursor: pointer;
    padding-right: 1rem;

    transition: opacity .22s ease;
}

.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: none;
    margin: 0;
}

.form-field-checkbox {
    cursor: pointer;
}

.form-field-checkbox-label {
    font-size: 0.8rem;
    margin: 0;
    margin-left: 0.5rem;
    cursor: pointer;
}

.form-field-help-text {
    display: block;
    width: 100%;
    color: grey;
    margin: 0 auto 0.8rem;
    padding-left: 1rem;
    text-align: start;
}

#id_pais {
    width: 90%;
    margin-right: 8px;
}

#flag_id_pais {
    display: none;
    height: 20px;
    width: auto;
    margin: auto 0;
}

.tc-link {
    color: #10559a;
    font-weight: 600;
}

.tc-link:hover {
    color: #0e4a88;
}

.form-btn-container{
    display: flex;
    opacity: 1;
    justify-content: center;
    width: 100%;
}

.login-btn {
    width: 200px;
    background: #10559a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: .5rem .7rem;
    margin: 1rem 0 0.5rem;
    font-weight: 700;
    transition: background-color .22s ease;
}

.login-btn:hover,
.login-btn:active {
    background: #0e4a88;
    transition: background-color .22s ease;
}

.action-links-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 7rem;
    margin-top: 0.5rem;
    width: 100%;
}

.action-link {
    width: fit-content;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.4rem 0;
}

.action-link:hover,
.action-link:active {
    color: rgb(212, 212, 212);
}

.action-link-separator {
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-container,
    .form-container-blank {
        padding: 8rem 0;
    }

    .form-field-container-50 {
        width: 100%;
    }

    .reset-msg-container {
        margin: 4rem 0 6rem;
    }

    .form-fieldset {
        padding: 1rem 0.5rem 0;
    }

    .glass-card,
    .blank-card {
        padding: 1rem 0.5rem;
        max-width: 80%;
    }

    .glass-card {
        padding: 1rem 1.5rem;
    }

    .form-title {
        font-size: 2rem;
    }

    .login-btn {
        width: 100%;
    }

    .welcome-container,
    .msg-container {
        width: 80%;
        margin-bottom: 0.5rem;
    }

    .msg-text {
        text-align: left;
        font-size: 12px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .welcome-text {
        font-size: 95%;
    }

    .checkbox-container {
        padding-right: 0;
        padding-left: 0;
    }

    .form-field-checkbox {
        width: 15%;
        height: 40%;
    }

    .form-field-checkbox-label {
        width: 80%;
    }

    .form-field-help-text{
        font-size: 60%;
    }

    #id_pais {
        width: 80%;
        margin-right: none;
    }
    
    #flag_id_pais {
        display: none;
        height: 20px;
        width: auto;
        margin: auto 0;
    }

    .action-links-container {
        padding: 0;
    }

    .action-link {
        padding: 0.6rem;
        font-size: 0.7rem;
    }

    
}


/* this are the honeypot fields */
#phone_number_actual,
#label-phone-number-actual,
.form-field-container-p{
    display:none;
}
