/* ============================================
   GrowCommerce - Auth Pages (Login & Register)
   ============================================ */

.auth-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 1.5rem 3rem;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    width: 100%;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
}

.auth-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px 20px 20px 20px;
}

@media (min-width: 1024px) {
    .auth-card {
        border-radius: 20px 0 0 20px;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.auth-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.9375rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.form-input-icon {
    padding-left: 2.75rem;
}

.input-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.25rem;
    display: flex;
}

.input-toggle:hover {
    color: #667eea;
}

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

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link-inline {
    font-size: 0.8125rem;
    color: #667eea;
    font-weight: 500;
    transition: color 0.2s;
}

.form-link-inline:hover {
    color: #764ba2;
}

.form-checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #6b7280;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    color: #9ca3af;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.social-auth-buttons {
    display: flex;
    justify-content: center;
    /*display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    font-family: inherit;
}

.btn-social:hover {
    border-color: #667eea;
    background: #f9fafb;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.9375rem;
}

.auth-link {
    color: #667eea;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #764ba2;
}

/* Side Art */
.auth-side-art {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
    .auth-side-art {
        border-radius: 0 20px 20px 0;
        background: rgba(255, 255, 255, 0.1);
    }
}

.side-art-content {
    color: white;
}

@media (max-width: 1023px) {
    .side-stat-label {
        color: #6b7280 !important;
    }
}

.side-art-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.side-art-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.side-art-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.side-stat {
    text-align: center;
}

.side-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.side-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Register-specific styles */
.auth-card-register {
    max-width: 560px;
    width: 560px;
    margin: 0 auto;
    border-radius: 20px;
}

@media (min-width: 1024px) {
    .auth-card-register {
        border-radius: 20px;
    }
}

/* required password strength */
.password-requirements {
    margin-top: 10px;
}

.requirement {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.requirement span.valid {
    color: #10b981;
}

.requirement span.invalid {
    color: #ef4444;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.strength-text {
    font-size: 0.75rem;
    color: #9ca3af;
    /* new css 7/3/2026 */
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #f3f4f6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terms-text {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    /* new css 7/3/2026 */
    flex: 1;
}

.terms-text a {
    color: #667eea;
    font-weight: 500;
}

.terms-text a:hover {
    color: #764ba2;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2rem;
    }

    .auth-side-art {
        padding: 2rem;
    }

    .social-auth-buttons {
        grid-template-columns: 1fr;
    }
}

/* Registration-specific enhancements === new css 7/3/2026 */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:focus.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.auth-card-register {
    animation: slideUp 0.6s ease-out;
}

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

.form-group {
    position: relative;
}

.form-input:focus {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.strength-text[style*="#ef4444"] {
    background: #fef2f2;
    color: #dc2626;
}

.strength-text[style*="#f97316"] {
    background: #fff7ed;
    color: #ea580c;
}

.strength-text[style*="#eab308"] {
    background: #fefce8;
    color: #ca8a04;
}

.strength-text[style*="#10b981"] {
    background: #f0fdf4;
    color: #166534;
}

.form-group.error .form-label {
    color: #ef4444;
}

.form-group.error .input-icon {
    color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '⚠';
    font-size: 0.875rem;
}

.registration-success {
    text-align: center;
    padding: 2rem;
}

.registration-success svg {
    width: 64px;
    height: 64px;
    color: #10b981;
    margin: 0 auto 1rem;
    display: block;
}

.registration-success h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.registration-success p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.countdown {
    font-weight: 600;
    color: #6366f1;
}
