* {
    box-sizing: border-box;
}
:root{ 
    --t4-bg-item: transparent !important;
    --label-translate-x: 0.15rem;
}
.form-floating {
    position: relative;
}
.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    color: #6c757d;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-size: 1rem;
    user-select: none;
}
.form-floating > input,
.form-floating > textarea,
.form-floating > select {
    width: 100%;
    padding: 1rem 0.75rem;
    font-size: 1.2rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-floating > input:focus,
.form-floating > textarea:focus,
.form-floating > select:focus {
    outline: 1px solid #ced4da !important;
    border-color: #86b7fe;
    box-shadow: 0 1px 1px 0 rgb(13 110 253 / 0.25);
}
.form-floating > input:not(:placeholder-shown) + label,
.form-floating > input:focus + label {
    transform: scale(0.85) translateY(-0.5rem) translateX(var(--label-translate-x));
}
.form-floating > input:not(:placeholder-shown):not(:focus) + label,
.form-floating > input:focus + label,
.form-floating > textarea:not(:placeholder-shown):not(:focus) + label,
.form-floating > textarea:focus + label,
.form-floating > select:not([value=""]):not(:focus) + label,
.form-floating > select:focus + label {
    opacity: 0.35;
    color: #495057;
    background-color: #fff;
    padding: 0 0.25rem;
    margin-top: -0.35rem;
    font-size: 1rem;
    z-index: 1;
}
.form-floating > input::placeholder,
.form-floating > textarea::placeholder {
    color: transparent;
}
.form-control-input {
    max-width: 100% !important;
}
.title-login {
    margin: 20px auto;
}
.login-options {
    text-align: center;
    margin-top: 10px;
}
.login-options a {
    display: block;
    margin: 5px 0;
    text-decoration: none;
}
.login-options a,
.login-options a:visited,
.login-options a:hover,
.login-options a:active {
    text-decoration: none;
}
a:hover, a:focus {
    border-bottom-color: none;
}
.login-form-img-login {
    min-width: auto !important;
    max-width: 90px !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}
.captcha-row {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
#captchaText {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.captcha-text {
    font-weight: bold;
    min-width: 60px;
    max-width: 100px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 12px;
}
.captcha-refresh {
    text-decoration: none;
    color: #007bff;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 1;
    white-space: nowrap;
}
.captcha-refresh:hover {
    color: #0056b3;
}
.captcha-text, .captcha-refresh {
    display: ruby;
    margin-right: 8px;
}
@media (max-width: 480px) {
    .captcha-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .captcha-refresh {
        margin-left: 0;
        margin-top: 5px;
    }
    .captcha-text {
        font-size: 16px;
    }
}
.step-fieldset {
    display: none;
}
.step-fieldset.active {
    display: block;
}
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.button-container button {
    padding: 5px 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    min-width: fit-content;
    width: auto;
    text-align: center;
    display: inline-block;
    margin: 0 5px;
    padding-left: calc(20px + 1em);
    padding-right: calc(20px + 1em);
}
.button-container button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background-color: #f0f0f0;
}
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 14px;
    }
    .button-container button {
        max-width: 100%;
    }
}
.button-loading {
    position: relative;
    color: transparent !important;
}
.button-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
    transform: translate(-50%, -50%);
}
@keyframes button-loading-spinner {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.action-button {
    transition: all 0.3s ease;
}
.action-button:disabled {
    background-color: #dc3545 !important;
    cursor: not-allowed;
    opacity: 0.7;
}
.error-message {
    display: none;
    color: red;
    margin-top: 10px;
    text-align: center;
    padding: 5px;
    font-weight: bold;
}
.error-message.show {
    display: block;
}
.verification-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
}
.verification-form h2 {
    text-align: center;
    margin-bottom: 20px;
}
.verification-form div {
    margin-bottom: 15px;
}
.verification-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.verification-form input[type="text"] {
    max-width: 100% !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.verification-form button[type="submit"] {
    background-color: #007bff;
    color: white;
}
.verification-form button[type="submit"]:hover {
    background-color: #0056b3;
}
.verification-form button {
    width: auto;
    min-width: 120px;
    display: block;
    margin: 20px auto 0 auto;
}
.logout-align {
    text-align: center;
}
.logout-form {
    text-align: center;
}
.logout-form .action-button {
    display: inline-block;
    width: auto;
    min-width: 120px;
    margin: 20px auto 0 auto;
}
.countdown-wrapper {
    visibility: visible !important;
    display: block !important;
}
#countdown {
    visibility: visible !important;
    display: inline !important;
}
@media screen and (min-width: 768px) {
    .login-form-custom input {
        width: 100%;
        height: 55px;
    }
}

@media (max-width: 310px) {
  .list-unstyled {
    padding: 0 5px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .list-unstyled li {
    margin-bottom: 12px;
    word-break: break-word;
    overflow: hidden;
  }
  
  .list-unstyled a {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    color: #007bff;
  }
  
  .list-unstyled a:hover {
    text-decoration: underline;
  }
  
  .list-unstyled span {
    display: block !important;
    white-space: normal;
    line-height: 1.6;
  }
  
  .list-unstyled span a {
    display: inline !important;
    margin-left: 5px;
    white-space: nowrap;
  }
}