/* Container and form wrapper */
form.um-remote-form {
    max-width: 450px;
    margin: 50px auto !important;
    padding: 42px 40px;
    background: #ffffff;
    position: relative;
    border: 1px solid #fff;
    border-radius: 6px;
    font-family: Inter;
}

.um-remote-form figure.logo_wrap {
    margin-bottom: 40px;
}

.um-remote-form figure.logo_wrap img:not([srcset]) {
    width: 120px;
    height: 40px;
}

.um-remote-form .um-form-group {
    position: relative;
    margin-bottom: 30px;
}
.um-remote-form .um-form-group .error-input-span {
    position: absolute;
    left: 0;
    bottom: -25px;
    font-size: 12px;
    font-weight: 400;
    color: #f00;
}

.um-remote-form .um-form-group .forgot-password {
    width: max-content;
    display: block;
    position: absolute;
    inset-inline-end: 0;
    bottom: -25px;
    font-size: 14px;
    font-weight: 500;
    color: #674dff;
    transition: 0.3s all ease-in-out;
    font-family: Inter;
    height: max-content;
    text-decoration: none;
    opacity: 1;
}

.um-remote-form .um-form-group .forgot-password:hover {
    opacity: .85;
}
.um-remote-form .um-form-group.form-btn {
    margin-bottom: 0px;
}
.um-remote-form .um-form-group.password-field {
    margin-bottom: 40px;
}

/* Input fields */
.um-remote-form .um-form-group input::placeholder {
    opacity: 0;
}

/* Chrome, Safari, Edge */
.um-form-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Reset focus outline on autofill */
.um-form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
}

/* Firefox */
.um-form-group input:-moz-autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
    -moz-text-fill-color: #000 !important;
}

/* Universal input reset */
.um-form-group input {
    background-clip: padding-box;
    -webkit-text-fill-color: #000;
    caret-color: #000;
}

.um-remote-form .um-form-group input[type="text"],
.um-remote-form .um-form-group input[type="password"],
.um-remote-form .um-form-group input[type="email"] {
    border: 1px solid #DBDEE2;
    color: #343E4D;
    font-size: 16px;
    border-radius: 6px;
    height: 56px;
    font-weight: 500;
    padding-inline: 18px;
    transition: border-color 0.3s ease;
    background-clip: padding-box;
    -webkit-text-fill-color: #000;
    caret-color: #000;
}

.um-remote-form input[type="text"]:focus,
.um-remote-form input[type="password"]:focus,
.um-remote-form input[type="email"]:focus {
    border-color: #674dff;
    background: #fff;
    outline: none;
}

/* Labels */
.um-remote-form label {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #888;
    padding: 0 0.25rem;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 400;
}

.um-form-group input:focus+label,
.um-form-group input:not(:placeholder-shown)+label {
    top: -3px;
    left: 6px;
    font-size: 12px;
    color: #5374BF;
}

/* Submit button */
.um-remote-form .um-form-group input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    background-color: #674dff;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    border: none;
    border-radius: 6px;
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.um-remote-form .um-form-group input[type="submit"]:hover {
    opacity: .85;
}

.um-remote-form .additional-text {
    text-align: center;
    padding-block: 20px;
}

.um-remote-form .view-terms-text ,
.um-remote-form .support-text {
    text-align: center;
    padding-bottom: 20px;
}

.um-remote-form .view-terms-text p,
.um-remote-form .support-text p,
.um-remote-form .additional-text p {
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.um-remote-form .view-terms-text p a,
.um-remote-form .support-text p a,
.um-remote-form .additional-text p a {
    color: #674dff;
    transition: 0.3s all ease-in-out;
    text-decoration: none;
    display: inline-block;
    opacity: 1;
}

.um-remote-form .view-terms-text p a:hover,
.um-remote-form .additional-text p a:hover {
    opacity: .85;
}

/* Message box styling */
.um-remote-message {
    position: absolute;
    left: 40px;
    bottom: 20px;
    padding: 0;
    background: unset;
    font-size: 14px;
    font-weight: 400;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.um-remote-message.success {
    background-color: #e6f7ed;
    color: #1c5e3a;
}

.um-remote-message.error {
    color: #f00;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    form.um-remote-form {
        padding: 30px 20px;
        margin-top: 30px;
    }
    .um-remote-message{
        left: 20px;
        bottom: 12px;
        font-size: 12px;
    }
}
@media (max-width: 575.98px) {
    form.um-remote-form {
        max-width: 100%;
    }
}