/* Unified Auth Page Styles (Login/Register) */

.auth-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 40px 20px;
}

.auth-page-container, .auth-main-container {
    width: 100%;
    max-width: 800px;
}

.auth-modal, .auth-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.auth-modal-benefits, .auth-benefits-column {
    background: #fff;
    padding: 40px 30px;
    border-right: 1px solid #f1f5f9;
}

.benefits-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
}

.benefits-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.5;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item, .benefit-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.benefit-icon, .benefit-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.benefit-text {
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    font-weight: 500;
}

.auth-modal-form, .auth-form-column {
    padding: 40px 50px;
}

.form-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.subtitle-text {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.form-group, .form-item {
    margin-bottom: 16px;
}

.form-group label, .form-item label, label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #1f2937;
}

.form-control, .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus, .form-input:focus {
    outline: none;
    border-color: #149777;
    box-shadow: 0 0 0 3px rgba(20, 151, 119, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-submit, .auth-btn-primary {
    width: 100%;
    padding: 10px 14px; /* Matching input padding */
    background: #149777;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700; /* Bolder as per request */
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px; /* Fixed height to match input + padding */
}

.btn-submit:hover, .auth-btn-primary:hover {
    background: #0f7a5f;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 12px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-social {
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google i { color: #ea4335; }
.btn-facebook { background: #3b5998; color: white; border-color: #3b5998; }
.btn-email { background: #149777; color: white; border-color: #149777; }

.terms-text, .auth-legal-text {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.terms-text a, .auth-legal-text a {
    color: #149777;
    text-decoration: none;
    font-weight: 600;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px; /* Added 10px spacing for desktop */
}

.country-code-select, .country-code {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 80px;
    background: #f9fafb;
}

.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #d1d5db;
    border-radius: 8px;
}

.otp-input:focus {
    border-color: #149777;
    box-shadow: 0 0 0 3px rgba(20, 151, 119, 0.1);
    outline: none;
}

.resend-otp {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
}

.resend-otp p {
    margin-bottom: 8px;
}

.btn-resend {
    background: transparent;
    border: none;
    color: #149777;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-resend:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.timer {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #94a3b8;
}

.back-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-back {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #1f2937;
}

.auth-footer-link {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #f3f4f6;
}

.auth-btn-switch {
    display: inline-block;
    padding: 10px 40px;
    background: #f3f4f6;
    color: #1f2937;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .auth-modal, .auth-box { grid-template-columns: 1fr; }
    .auth-modal-benefits, .auth-benefits-column { display: none; }
    .auth-modal-form, .auth-form-column { padding: 28px 24px; }
    .phone-input-group { margin-bottom: 5px !important; }
}
