/**
 * Auth Pages Common Styles
 * Shared styles for login and register pages
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */

/* Override Elementor styles */
.auth-page {
    background: #f4f6fa;
    padding-top: 60px;
    padding-bottom: 60px;
}

.auth-page,
.site-main.auth-page,
#main.auth-page {
    padding-left: 20px;
    padding-right: 20px;
}

.auth-page .elementor-container,
.auth-page .elementor-row,
.auth-page .elementor-column,
.auth-page .elementor-section {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* Container */
.auth-container {
    display: flex;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0;
}

/* ============================================
   LEFT BANNER SECTION
   ============================================ */
.auth-banner {
    position: relative;
    width: 514px;
    height: 646px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ============================================
   RIGHT FORM SECTION
   ============================================ */
.auth-form-wrapper {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 45px 10px rgba(0, 0, 0, 0.1);
    padding: 60px 16px 20px;
    overflow-y: auto;
    height: 646px;
    box-sizing: border-box;
}

.auth-form-container {
    max-width: 752px;
    margin: 0 auto;
    position: relative;
}

/* Form Title */
.form-title {
    font-weight: 900;
    font-size: 28px;
    line-height: 36px;
    color: #108d52;
    margin: 0 0 16px 0;
    text-align: center;
}

/* Form Sections */
.form-section {
    margin-bottom: 24px;
}

.section-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    margin: 0 0 20px 0;
}

.form-row {
    margin-bottom: 16px;
}

.form-group {
    position: relative;
    width: 100%;
}

/* Form Inputs */
.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #108d52;
    border-radius: 8px;
    font-weight: 400;
    font-size: 12px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.87);
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: auto;
    min-height: 38px;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.42);
    opacity: 1;
    font-size: 12px;
    line-height: normal;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #108d52;
    box-shadow: none;
}

.form-input.error,
.form-select.error {
    border-color: #ed3934;
    box-shadow: 0 0 0 2px rgba(237, 57, 52, 0.1);
}

/* Password Input with Toggle */
.form-group-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group-with-icon .form-input {
    width: 100%;
    padding-right: 40px;
}

.form-group-with-icon .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.password-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Submit Button */
.btn-submit {
    width: 258px;
    height: 40px;
    background: #108d52;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 16px auto 0;
    display: block;
}

.btn-submit:hover {
    background: #0d7a43;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #d0d5dd;
    cursor: not-allowed;
}

/* Separator */
.form-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    width: 258px;
    justify-content: center;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: #838383;
}

.separator-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #838383;
}

/* Google Button */
.btn-google {
    width: 258px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #838383;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.btn-google:hover {
    background: #f5f5f5;
    border-color: #108d52;
}

.btn-google svg {
    width: 16px;
    height: 16px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer p {
    font-weight: 400;
    font-size: 12px;
    line-height: 22px;
    color: #000000;
    margin: 0;
}

.form-footer .link {
    color: #108d52;
    text-decoration: underline;
    text-underline-position: from-font;
}

.form-footer .link:hover {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .auth-container {
        gap: 16px;
    }
    
    .auth-banner {
        width: 450px;
    }
}

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auth-banner {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
    
    .banner-image {
        height: auto;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
        height: auto;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .auth-page,
    .site-main.auth-page,
    #main.auth-page {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .auth-page {
        padding: 30px 10px;
    }
    
    .auth-banner {
        display: none;
    }
    
    .auth-form-wrapper {
        padding: 30px 16px;
    }
    
    .auth-form-container {
        max-width: 100%;
    }
    
    .form-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .btn-submit,
    .btn-google,
    .form-separator {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 20px;
        line-height: 28px;
    }
}
