/* Style for the login pages*/


/* Style for the login button */
.login-button {
    background-color: #FFA101;
    color: white;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 15px;
    border: none;
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
    margin-top: 20px;
    font-weight: bold;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
}
.login-button:hover {
    background-color: #E69101;
}
.secondary-button,
.forgot-password-button,
a.createaccounttext {
    background-color: #f7f7f7;
    color: #111;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid #c9c9c9;
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
    font-weight: bold;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    font-weight: bold;
    font-family: sans-serif;
}
a.secondary-button,
a.createaccounttext {
    margin-top: 30px;
}
.secondary-button:hover,
.forgot-password-button:hover,
a.createaccounttext:hover {
    border-color: #b0b0b0;
    background-color: #fafafa;
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}
.reset-back-button {
    margin: 30px auto;
}
.reset-submit-button {
    margin: 50px auto;
}
.activation-submit-button {
    margin: 50px auto;
}
.login-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}
.login-actions .login-button {
    margin-top: 0;
    margin-bottom: 8px;
}
/* Style for the input box */
.login-input {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    outline: none;
    background-color: #f7f7f7;
    margin-top: 5px;
    border: 1px solid rgb(211 211 211);
    display: block;
    margin-left: auto;
    margin-bottom: 20px;
    margin-right: auto;
}
.password-field {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}
.password-field .login-input {
    padding-right: 36px;
    margin-bottom: 0;
}
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    width: 22px;
    height: 22px;
    color: #8b8b8b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password:hover {
    color: #FFA101;
}
.toggle-password:focus-visible {
    outline: 2px solid #FFA101;
    outline-offset: 2px;
    border-radius: 4px;
}
.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
}
.toggle-password .icon-eye-off {
    display: none;
}
.toggle-password.is-visible .icon-eye {
    display: none;
}
.toggle-password.is-visible .icon-eye-off {
    display: block;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f7f7f7 inset;
}
.reset-password-input {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    outline: none;
    background-color: #ffffff;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #d5d5d5;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.login-input:focus {
    border: 1px solid rgba(195, 195, 195, .5);
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}
.signup-text {
  color: #FFA101;
}
div#loginMessage {
    font-family: sans-serif;
    font-size: 14px;
    margin-top: 7px;
    max-width: 320px;
    text-align: center;
    margin: auto;
}
.form-message {
    font-family: sans-serif;
    font-size: 14px;
    margin: 12px auto 0;
    max-width: 360px;
    text-align: center;
}
.form-message.error {
    color: #d0342c;
}
.form-message.success {
    color: #2b7a2b;
}
.form-helper {
    font-family: sans-serif;
    font-size: 14px;
    color: #555;
    margin: 0 auto 20px;
    max-width: 360px;
    text-align: center;
}
.terms-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.terms-modal .terms-row {
    max-width: 100%;
    margin: 8px 0 12px;
}
.terms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}
.terms-modal {
    width: 100%;
    max-width: 420px;
    text-align: left;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}
.terms-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.terms-close:hover {
    color: #333;
}
.terms-title {
    font-family: sans-serif;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}
.terms-copy {
    font-family: sans-serif;
    font-size: 16px;
    color: #555;
    text-align: center;
    max-width: 300px;
    margin: auto;
    margin-bottom: 20px;
}
.terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif;
    font-size: 14px;
    color: #222;
    margin: 0;
}
.terms-check input {
    margin-top: 2px;
}
.terms-link {
    display: inline;
    font-family: sans-serif;
    font-size: 14px;
    color: #FFA101;
    text-align: left;
    margin: 0;
}
.terms-link:hover {
    color: #E69101;
}
.login-button:disabled {
    background-color: #d8d8d8;
    color: #888;
    cursor: not-allowed;
}
.login-button:disabled:hover {
    background-color: #d8d8d8;
}
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 20px;
    max-width: 360px;
}
.code-input {
    width: 44px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #d5d5d5;
    background-color: #ffffff;
    font-size: 20px;
    text-align: center;
    box-sizing: border-box;
}
.code-input:focus {
    border-color: #FFA101;
    outline: none;
}
a:-webkit-any-link {
    text-decoration: none;
}
/* login wrapper and box */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -35%);
    top: 35%;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}
.login-box {
    box-shadow: 1px 3px 9px -3px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 1px 3px 9px -3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 1px 3px 9px -3px rgba(0, 0, 0, 0.5);
    padding: 32px 24px 28px;
    border-radius: 6px;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    border: 1px solid #f3f3f3;
    text-align: center;
}
/* images */
.powerflow-logo{
    width: 360px;
    margin: 0 auto 60px;
    display: block;
    max-width: 90%;
    height: auto;
}
.login-box-short {
    box-shadow: 1px 3px 9px -3px rgba(0,0,0,0.49);
    -webkit-box-shadow: 1px 3px 9px -3px rgba(0,0,0,0.49);
    -moz-box-shadow: 1px 3px 9px -3px rgba(0,0,0,0.49);
    padding: 56px 48px 32px;
    border-radius: 6px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .login-wrapper {
        top: 32%;
        transform: translate(-50%, -30%);
    }
    .login-box,
    .login-box-short {
        max-width: unset;
        padding: unset;
        border: unset;
    }
    .powerflow-logo {
        width: 260px;
    }
    .login-box {
        box-shadow: 1px 3px 9px -3px rgba(0, 0, 0, 0);
        -webkit-box-shadow: 1px 3px 9px -3px rgba(0, 0, 0, 0);
        -moz-box-shadow: 1px 3px 9px -3px rgba(0, 0, 0, 0);
    }
}
