/**
 * WC Custom Auth - Frontend Styles
 */

.wcca-form-container {
    max-width: 520px;
    margin: 30px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.wcca-form-container * {
    box-sizing: border-box;
}

.wcca-form-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

.wcca-form-description {
    margin: -10px 0 20px;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

.wcca-form-row {
    margin-bottom: 18px;
}

.wcca-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.wcca-form-row .required {
    color: #dc2626;
    font-weight: 700;
}

.wcca-form-row input[type="text"],
.wcca-form-row input[type="email"],
.wcca-form-row input[type="password"],
.wcca-form-row input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wcca-form-row input[type="text"]:focus,
.wcca-form-row input[type="email"]:focus,
.wcca-form-row input[type="password"]:focus,
.wcca-form-row input[type="tel"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wcca-hint {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.wcca-label-block {
    display: block;
    margin-bottom: 10px !important;
}

.wcca-radio-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

.wcca-radio-label,
.wcca-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
    color: #374151;
    line-height: 1.4;
}

.wcca-radio-label input[type="radio"],
.wcca-checkbox-label input[type="checkbox"] {
    margin: 3px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

.wcca-tax-exempt-notice {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
}

.wcca-recaptcha-row {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

.wcca-submit-row {
    margin-top: 24px;
}

.wcca-button {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.05s;
    text-align: center;
    text-decoration: none;
}

.wcca-button-primary {
    background: #2563eb;
    color: #fff;
}

.wcca-button-primary:hover {
    background: #1d4ed8;
}

.wcca-button-primary:active {
    transform: translateY(1px);
}

.wcca-remember-row {
    display: flex;
    align-items: center;
}

.wcca-form-links {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: #6b7280;
}

.wcca-form-links a {
    color: #2563eb;
    text-decoration: none;
}

.wcca-form-links a:hover {
    text-decoration: underline;
}

.wcca-link-separator {
    margin: 0 6px;
    color: #d1d5db;
}

.wcca-already-logged-in {
    text-align: center;
    padding: 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 6px;
    max-width: 520px;
    margin: 30px auto;
}

/* Status messages from query-args. */
.wcca-message {
    max-width: 520px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
}

.wcca-message-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #10b981;
}

.wcca-message-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

.wcca-message-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

/* Password strength meter. */
.wcca-password-strength {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.wcca-password-strength.short {
    background: #fee2e2;
    color: #991b1b;
}

.wcca-password-strength.bad {
    background: #fed7aa;
    color: #9a3412;
}

.wcca-password-strength.good {
    background: #fef3c7;
    color: #854d0e;
}

.wcca-password-strength.strong {
    background: #d1fae5;
    color: #065f46;
}

/* Password match indicator. */
.wcca-password-match {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.wcca-password-match.match {
    background: #d1fae5;
    color: #065f46;
}

.wcca-password-match.mismatch {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 600px) {
    .wcca-form-container {
        margin: 16px;
        padding: 20px;
    }

    .wcca-form-title {
        font-size: 20px;
    }

    .wcca-radio-group {
        gap: 18px;
    }
}
