:root {
    --min-height-sign-in: 60px;
}

body.page-template-page-sign-in {
    background-color: #212123;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.page-template-page-sign-in header .elementor-element-310297ec {
    min-height: var(--min-height-sign-in);
}

body.page-template-page-sign-in .site-main {
    min-height: calc(100vh - var(--min-height-sign-in));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #212123;
    padding: 40px 0;
    overflow-y: auto;
}

@media (max-width: 767px) {
    body.page-template-page-sign-in .site-main {
        align-items: flex-start;
    }
}

/* Sign In Page Container */
.sign-in-page {
    max-width: 580px;
    width: 100%;
    margin: 100px auto;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(-15px);
}

.sign-in-page h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #F7F1ED;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .sign-in-page {
        margin: 50px auto;
    }

    .sign-in-page h2 {
        font-size: 32px;
    }
}

.sign-in-page .message {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 10px 10px 10px 70px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.sign-in-page .message::before {
    display: grid;
    align-items: center;
    content: '';
    width: 50px;
    height: 100%;
    color: #FFF7E9;
    text-align: center;
    font-size: 30px;
    line-height: 1;
    font-weight: 500;
    padding-bottom: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.sign-in-page .message::after {
    content: '';
    border-style: solid;
    border-width: 2px 2px 2px 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    width: calc(100% - 50px);
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
}

.sign-in-page .message.success::after {
    border-color: #47E39A;
}

.sign-in-page .message.success::before {
    content: '\2713';
    background-color: #47E39A;
}

.sign-in-page .message.success {
    color: #47E39A;
    background: transparent;
}

.sign-in-page .message.error {
    color: #F57474;
    background: transparent;
}

.sign-in-page .message.error::after {
    border-color: #F57474;
}

.sign-in-page .message.error::before {
    content: '\02715';
    background-color: #F57474;
    padding-top: 4px;
}

.sign-in-page .info-text {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #868686;
    margin-bottom: 15px;
    margin-top: 0;
    text-align: left;
    padding-left: 25px;
}

.sign-in-page .info-text.register-text {
    color: #F7F1ED;
    font-size: 20px;
    text-align: center;
    text-indent: 0;
    padding-left: 0;
    margin-bottom: 58px
}

.sign-in-page .info-text.lost-password-text {
    font-size: 20px;
    color: #F7F1ED;
    padding-left: 0;
    margin-bottom: 40px;
    text-align: center;
}

.sign-in-page .info-text.reset-text {
    font-size: 20px;
    padding-left: 0;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 767px) {
    .sign-in-page .info-text,
    .sign-in-page .info-text.register-text {
        font-size: 18px;
        padding-left: 5px;
        text-align: left;
    }
}

/* Form Styles */
#loginform,
#registerform,
#lostpasswordform {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Remove all labels */
#loginform label,
#registerform label,
#lostpasswordform label {
    display: none;
}

/* Password field wrapper */
.password-field-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.password-field-wrapper button {
    border: none;
    background-color: transparent !important;
}

.password-field-wrapper input {
    padding-right: 50px !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle::before {
    font-family: dashicons;
    content: "\f177"; /* eye open */
    font-size: 20px;
    color: #a6a197;
}

.password-toggle.active::before {
    content: "\f530"; /* eye closed */
}

/* Input Fields */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#registerform input[type="text"],
#registerform input[type="email"],
#registerform input[type="password"],
#resetpassform input[type="password"],
#resetpassform input[type="text"],
#lostpasswordform input[type="email"] {
    width: 100%;
    max-width: 100%;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: #050507;
    color: #F7F1ED;
    font-size: 20px;
    font-weight: 500;
    display: block;
}

#loginform input[type="text"] {
    margin-bottom: 12px;
}

#registerform #user_password {
    margin-bottom: 8px;
}

#registerform #confirm_password {
    margin-bottom: 20px;
}

#lostpasswordform #confirm_email_reset,
#resetpassform #pass2 {
    margin-bottom: 54px;
}

@media (max-width: 767px) {
    #loginform input[type="text"],
    #loginform input[type="password"],
    #loginform input[type="email"],
    #registerform input[type="text"],
    #registerform input[type="email"],
    #registerform input[type="password"],
    #resetpassform input[type="password"],
    #resetpassform input[type="text"],
    #lostpasswordform input[type="email"] {
        font-size: 18px;
    }

    #registerform #confirm_password {
        margin-bottom: 8px;
    }
}

#loginform input[type="text"]::placeholder,
#loginform input[type="password"]::placeholder,
#loginform input[type="email"]::placeholder,
#registerform input[type="text"]::placeholder,
#registerform input[type="email"]::placeholder,
#registerform input[type="password"]::placeholder,
#resetpassform input[type="password"]::placeholder,
#resetpassform input[type="text"]::placeholder,
#lostpasswordform input[type="email"]::placeholder {
    color: #868686;
    font-size: 20px;
    font-weight: 500;
}

@media (max-width: 767px) {
    #loginform input::placeholder,
    #registerform input::placeholder,
    #resetpassform input::placeholder,
    #lostpasswordform input::placeholder {
        font-size: 18px;
    }
}

#loginform input:focus,
#registerform input:focus,
#resetpassform input:focus,
#lostpasswordform input:focus {
    outline: none;
}

/* Last input before info text spacing */
#loginform #user_pass {
    margin-bottom: 20px;
}

/* Forgot password link */
.sign-in-page .form-links.forgot-link {
    margin-top: 0;
    margin-bottom: 58px;
    text-align: center;
}

.sign-in-page .form-links.forgot-link a {
    color: #F7F1ED !important;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 500;
}

.sign-in-page .form-links.forgot-link a:hover {
    color: #FFC321 !important;
    text-decoration: underline;
}

.sign-in-page .form-links.back-to-link a .highlight {
    color: #F7F1ED !important;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 500;
}

.sign-in-page .form-links.back-to-link a:hover {
    color: #F7F1ED !important;
}

/* Submit Button */
#loginform input[type="submit"],
#registerform input[type="submit"],
#resetpassform input[type="submit"],
#lostpasswordform input[type="submit"] {
    width: 420px;
    max-width: 100%;
    height: 50px;
    padding: 0;
    background: #FFC321;
    border: none;
    border-radius: 57px;
    cursor: pointer;
    box-sizing: border-box;
    color: #050507;
    font-size: 24px;
    font-weight: 500;
    display: block;
    transition: transform 0.3s ease;
    margin: 10px auto 22px;
}

@media (max-width: 767px) {
    #loginform input[type="submit"],
    #registerform input[type="submit"],
    #resetpassform input[type="submit"],
    #lostpasswordform input[type="submit"] {
        font-size: 18px;
    }
}

#loginform input[type="submit"]:hover,
#registerform input[type="submit"]:hover,
#resetpassform input[type="submit"]:hover,
#lostpasswordform input[type="submit"]:hover {
    background: #CD9707;
    transform: scale(0.98);
}

/* Links below button */
.sign-in-page .form-links {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    color: #F7F1ED;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

.sign-in-page .form-links a {
    color: #F7F1ED;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .sign-in-page .form-links,
    .sign-in-page .form-links a,
    .sign-in-page .form-links.forgot-link a {
        font-size: 18px;
    }
}

.sign-in-page .form-links a:hover {
    text-decoration: underline;
}

.sign-in-page .form-links a .highlight {
    color: #FFC321;
}

.register-link {
    margin-top: 0;
}

#loginform .login-remember,
#registerform .login-remember {
    display: none;
}

.login form .show-password-toggle {
    color: #868686;
    background: transparent;
}

.login .dashicons {
    color: #868686;
}
