/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Google OAuth Button */
.hwa-oauth-container {
    margin: 20px 0;
    width: 100%;
}

.hwa-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #3c4043;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 0 16px;
    height: 40px;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    width: 100%;
    max-width: 400px;
}

.hwa-google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    color: #3c4043;
    text-decoration: none;
}

.hwa-google-btn:active {
    background-color: #e8eaed;
}

.hwa-google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.hwa-google-icon {
    width: 18px;
    height: 18px;
}

.hwa-google-btn-text {
    text-align: center;
    flex-grow: 1;
}

/* Firebase Phone Authentication */
.hwa-phone-auth-container {
    margin: 20px 0;
    padding-top: 10px;
}

.hwa-phone-separator {
    text-align: center;
    color: #777;
    margin: 20px 0;
    font-size: 0.9em;
    text-transform: uppercase;
}

.hwa-hidden {
    display: none !important;
}

.hwa-phone-form .hwa-help-text {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.hwa-phone-form .hwa-consent-text {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hwa-phone-form .woocommerce-error {
    margin-bottom: 15px;
}

/* Ensure reCAPTCHA container clears floats and renders nicely */
#hwa-recaptcha-login-container,
#hwa-recaptcha-register-container {
    margin-top: 15px;
    min-height: 20px; /* Space for the invisible recaptcha badge if it renders inline */
}

/* ==========================================================================
   UNIFIED AUTH FORM (Phase 5)
   ========================================================================== */

/* Hide WooCommerce default login/register forms on My Account when our unified form is present */
.woocommerce-account .u-columns.col2-set {
    display: none !important;
}

/* Main Wrapper */
.hwa-unified-auth-wrapper {
    max-width: 420px;
    margin: 0 auto 3em;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
}

.hwa-unified-auth-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    color: #282c3f; /* Myntra dark title */
}

/* Step Visibility */
.hwa-auth-step {
    display: none;
    animation: hwaFadeIn 0.3s ease-in-out;
}

.hwa-auth-step.hwa-active {
    display: block;
}

@keyframes hwaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Phone Input Group */
.hwa-phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d4d5d9;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.hwa-phone-input-group:focus-within {
    border-color: #ff3f6c; /* Vibrant Pink */
}

.hwa-country-code {
    color: #282c3f;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #d4d5d9;
    white-space: nowrap;
}

.hwa-phone-input-group input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    background: transparent;
    font-size: 16px;
    color: #282c3f;
}

/* OTP Boxes */
.hwa-otp-boxes {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 25px;
}

.hwa-otp-digit {
    width: 45px !important;
    height: 50px !important;
    text-align: center;
    font-size: 20px !important;
    font-weight: 600;
    padding: 0 !important;
    border: 1px solid #d4d5d9 !important;
    border-radius: 4px !important;
    background: #fff;
    color: #282c3f;
    transition: border-color 0.2s, transform 0.1s;
}

.hwa-otp-digit:focus {
    border-color: #ff3f6c !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #ff3f6c !important;
    transform: scale(1.05);
}

/* Primary Button */
.hwa-btn-full-width {
    width: 100%;
    background-color: #ff3f6c !important; /* Myntra Pink */
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 15px;
}

.hwa-btn-full-width:hover {
    background-color: #e53560 !important;
}

.hwa-btn-full-width:disabled {
    background-color: #f3f3f3 !important;
    color: #a9abb3 !important;
    cursor: not-allowed;
}

/* Divider */
.hwa-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #a9abb3;
    font-size: 12px;
    font-weight: 600;
}

.hwa-divider::before, .hwa-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #f0f0f5;
}

.hwa-divider:not(:empty)::before {
    margin-right: 15px;
}

.hwa-divider:not(:empty)::after {
    margin-left: 15px;
}

/* Standard Inputs for Step 3 */
.hwa-unified-auth-wrapper .input-text {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #d4d5d9 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: border-color 0.2s;
}

.hwa-unified-auth-wrapper .input-text:focus {
    border-color: #ff3f6c !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Links & Text */
.hwa-unified-auth-wrapper p {
    margin-bottom: 15px;
}

.hwa-unified-auth-wrapper strong {
    color: #282c3f;
    font-weight: 600;
}