* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    display: none;
}

html {
    background: rgba(0, 0, 0, 1);
    height: 100vh;
}

.auth_body {
    width: 100%;
    height: 100vh;
    background: url(../img/auth_banner_new.webp) no-repeat center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}



.auth_wrapper {
    border-radius: 30px;
    padding: 40px 50px;
    width: 100%;
    padding: 40px 50px;
    background: var(--black);
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.auth_wrapper.sing_up{
    max-width: 700px;
}
.auth_wrapper.login{
    max-width: 500px;
}
.login_help_btns{
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.forgot_text{
    flex: 1;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: var(--red);
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
}
.resend_email{
    flex: 1;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
}

.auth_tab_btns {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    color: var(--white);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.auth_tab.active {
    border: 2px solid var(--red);
    border-radius: 10px;
    color: var(--red);
}

.auth_tab {
    padding: 20px 30px;
}

.form_wrapper {
    display: none;
    flex-direction: column;
    gap: 20px;
}
.form_wrapper.active {
  display: flex; 
}

.auth_input_wrapper {
    border-radius: 14px;
    height: 60px;
    min-width: 290px;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    display: flex;
}


.auth_input_wrapper input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 24px;
    outline: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: var(--white);
    cursor: pointer;
}

.auth_input_wrapper input:focus {
    background: transparent;
}

.auth_input_wrapper input.error {
    background: #ffb8b8;
}
.auth_input_wrapper input.error::placeholder {
    color: var(--red);
}
.check_text.error{
    color: var(--red);
}
.checkbox_group label {
    display: flex;
    align-items: flex-start;
}

.checkbox_group {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
}

.check_text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--white);
}

.check_text a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--red);
}


.checkbox_group input[type="checkbox"] {
    display: none;
}


.custom_checkbox {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 2px solid var(--red);
    border-radius: 4px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    flex: 0 0 24px;
    transition: all 0.2s ease;
}


.custom_checkbox::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--red);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all 0.2s ease;
}


.checkbox_group input[type="checkbox"]:checked+.custom_checkbox {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--red);
}


.checkbox_group input[type="checkbox"]:checked+.custom_checkbox::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}


.checkbox_group label:hover .custom_checkbox {
    border-color: #ff6666;
}


.checkbox_group a {
    color: #ff4d4d;
    text-decoration: none;
}

.checkbox_group a:hover {
    text-decoration: underline;
}

.auth_group_inputs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.auth_group_inputs .auth_input_wrapper {
    flex: 1 1 48%;
}
.disabled {
    pointer-events: none; 
    opacity: 0.5;         
    cursor: not-allowed;  
}
.resend_email_text{
      font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--red);
}
.resend_email_text span{
    color: var(--white);
}
.form_btn{
    border-radius: 14px;
    width: max-content;
    padding: 20px 40px;
    background: var(--red);
    margin: 0 auto;
    cursor: pointer;
}


.auth_input_wrapper input[type="date"] {
    color: var(--white);
}

.auth_input_wrapper input[type="date"]::-webkit-datetime-edit,
.auth_input_wrapper input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.auth_input_wrapper input[type="date"]::-webkit-datetime-edit-text,
.auth_input_wrapper input[type="date"]::-webkit-datetime-edit-month-field,
.auth_input_wrapper input[type="date"]::-webkit-datetime-edit-day-field,
.auth_input_wrapper input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--white);
}

.auth_input_wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); 
    cursor: pointer;
}

.date-wrapper {
    position: relative;
}
.date-placeholder {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    display: none;
}
input[type="date"]:not(:placeholder-shown) + .date-placeholder,
input[type="date"]:valid + .date-placeholder {
    display: none;
}



.auth_wrapper.resend{
    padding-top: 110px;
    position: relative;
}
.submit_btn_text{
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: var(--white);
}
.google_wrapper{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
.google_wrapper_text{
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: var(--white);
}
.google_btn{
    border-radius: 10px;
    border: 1px solid var(--red);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}


.auth_modal {
    display: none;
    border-radius: 30px;
    padding: 40px 50px;
    max-width: 700px;
    width: 100%;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    background: var(--black);
}
.auth_modal.open {
    display: flex;
}
strong.fail,
strong.done{
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 34px;
    line-height: 153%;
    text-align: center;
    color: var(--white);
}
.auth_modal_text{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth_modal_text .done,
.auth_modal_text .fail{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth_text{
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 189%;
    text-align: center;
    color: var(--white);
}
.done .auth_text strong{
    font-weight: 700;
}
.fail .auth_text strong{
    color: var(--red);
    font-weight: 700;
}

.auth_modal .done,
.auth_modal .fail {
    display: none;
}
.auth_btn{
    border-radius: 14px;
    height: 60px;
    background: var(--red);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth_btn a{
    font-family: var(--font-family);
    font-weight: 400;
    padding: 20px 40px;
    font-size: 20px;
    text-align: center;
    color: var(--white);
    text-decoration: none;
}

.auth_back {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    color: var(--dark);
    position: absolute;
    top: 40px;
    left: 50px;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--red);
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.auth_back .back_arrow {
    font-size: 20px;
    margin-right: 8px;
}
.auth_wrapper.forgot{
    max-width: 500px;
    width: 100%;
    position: relative;
    padding-top: 120px;
}



.response_modal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 15px 20px;
    min-width: 250px;
    animation: fadeIn 0.3s ease;
}
.response_modal.success { border-left: 4px solid #28a745; }
.response_modal.error { border-left: 4px solid #dc3545; }

.response_modal_content { position: relative; }
.response_modal_content p { margin: 0; color: #333; font-size: 14px; }
.response_modal_close {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}








.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px 15px;
    text-decoration: none;
    color: #3c4043;
    font-family: 'Google Sans', sans-serif;
    transition: box-shadow 0.3s;
}

.google-login-btn:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}


@media screen and (max-width: 768px) {
    .auth_body{
        padding: 40px 20px 0 20px;
    }
}
@media screen and (max-width: 580px) {
    .auth_wrapper{
        padding: 20px;
        gap: 15px;
    }
    .form_wrapper{
        gap: 10px;
    }
    .auth_group_inputs{
        gap: 10px;
    }
    .auth_body {
        height: 100%;
    }
    .auth_tab{
        padding: 10px 15px;
    }
    .auth_input_wrapper{
        min-width: 100%;
        height: 40px;
    }
    .auth_input_wrapper input {
        font-size: 14px;
    }
    .check_text{
        font-size: 14px;
    }
    .checkbox_group a{
        font-size: 14px;
    }
    .form_btn{
        padding: 10px 20px;

    }
    .google_btn{
        padding: 7px;
    }
    strong.fail, strong.done {
        font-size: 24px;
    }
    .auth_modal {
        padding: 20px 25px;
        gap: 15px;
    }
    img.done,
    img.fail {
        width: 50px;
        height: 50px;
    }
    .auth_text{
        font-size: 14px;
    }
    .auth_btn a{
        padding: 10px 20px;
    }
}

