/* ============================================
   DealsBarter Authentication Forms Styles
   Complete CSS for Login & Registration
   ============================================ */

/* ============================================
   Main Section Wrapper
   ============================================ */

.nhz-auth-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef3 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
}

.nhz-auth-grid {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(500px, 680px);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.nhz-auth-left {
    position: sticky;
    top: 40px;
}

.nhz-auth-brand {
    margin-bottom: 40px;
}

.nhz-logo-link {
    display: inline-block;
}

.nhz-brand-logo {
    height: 48px;
    width: auto;
}

.nhz-auth-hero {
    margin-bottom: 32px;
}

.nhz-auth-title {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.nhz-auth-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.nhz-auth-features {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.nhz-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
}

.nhz-feature-item i {
    font-size: 20px;
    color: #1296d2;
    width: 24px;
    text-align: center;
}

.nhz-auth-perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.nhz-perk-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #1296d2;
}

.nhz-perk-card i {
    font-size: 28px;
    color: #1296d2;
    margin-bottom: 12px;
    display: block;
}

.nhz-perk-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.nhz-perk-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.nhz-auth-cta {
    text-align: center;
    padding: 24px;
    background: rgba(18, 150, 210, 0.08);
    border-radius: 16px;
}

.nhz-auth-cta p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.nhz-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #1296d2;
    border-radius: 10px;
    color: #1296d2;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nhz-btn-outline:hover {
    background: #1296d2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 150, 210, 0.3);
}

.nhz-auth-right {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 40px;
}

.nhz-auth-card {
    max-width: 100%;
}

.nhz-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.nhz-auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.nhz-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhz-back-link:hover {
    color: #1296d2;
}

.nhz-alert {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.nhz-alert i {
    font-size: 18px;
    margin-top: 1px;
}

.nhz-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.nhz-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.nhz-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.nhz-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.nhz-alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.nhz-form {
    width: 100%;
}

.nhz-form-section {
    margin-bottom: 28px;
}

.nhz-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nhz-section-title i {
    color: #1296d2;
    font-size: 18px;
}

.nhz-form-group {
    margin-bottom: 18px;
}

.nhz-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.nhz-label i {
    color: #1296d2;
    font-size: 14px;
}

.nhz-input,
.nhz-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: white;
    transition: all 0.2s ease;
}

.nhz-input:focus,
.nhz-select:focus {
    outline: none;
    border-color: #1296d2;
    box-shadow: 0 0 0 3px rgba(18, 150, 210, 0.1);
}

.nhz-input::placeholder {
    color: #9ca3af;
}

.nhz-input-error {
    border-color: #ef4444;
}

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

.nhz-error-text {
    display: block;
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
}

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

.nhz-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nhz-password-toggle:hover {
    color: #1296d2;
}

.nhz-password-strength {
    margin-top: 8px;
}

.nhz-strength-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.nhz-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nhz-strength-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.nhz-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.nhz-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nhz-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nhz-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.nhz-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1296d2;
}

.nhz-link {
    color: #1296d2;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhz-link:hover {
    color: #0a7fa3;
    text-decoration: underline;
}

.nhz-link-bold {
    color: #1296d2;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhz-link-bold:hover {
    color: #0a7fa3;
    text-decoration: underline;
}

.nhz-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1296d2 0%, #0a7fa3 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(18, 150, 210, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nhz-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 150, 210, 0.4);
}

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

.nhz-btn-full {
    width: 100%;
}

.nhz-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: nhz-spin 0.6s linear infinite;
}

@keyframes nhz-spin {
    to { transform: rotate(360deg); }
}

.nhz-form-footer {
    text-align: center;
    margin-top: 16px;
}

.nhz-form-footer small {
    font-size: 13px;
    color: #6b7280;
}

.nhz-form-footer a {
    color: #1296d2;
    text-decoration: none;
    font-weight: 600;
}

.nhz-form-footer a:hover {
    text-decoration: underline;
}

.nhz-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
}

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

.nhz-divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.nhz-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nhz-btn-google:hover {
    border-color: #1296d2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.nhz-btn-google img {
    width: 20px;
    height: 20px;
}

.nhz-auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
    color: #6b7280;
}

.d-none {
    display: none !important;
}

@media (max-width: 1024px) {
    .nhz-auth-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nhz-auth-left {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .nhz-auth-features,
    .nhz-auth-perks {
        display: none;
    }

    .nhz-auth-hero {
        text-align: center;
    }

    .nhz-auth-right {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nhz-auth-wrapper {
        padding: 20px 16px;
    }

    .nhz-auth-right {
        padding: 28px 24px;
    }

    .nhz-auth-title {
        font-size: 32px;
    }

    .nhz-auth-header h2 {
        font-size: 24px;
    }

    .nhz-form-row-2,
    .nhz-form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nhz-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .nhz-auth-right {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .nhz-auth-title {
        font-size: 28px;
    }

    .nhz-auth-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nhz-input,
    .nhz-select {
        font-size: 16px;
    }

    .nhz-btn-primary,
    .nhz-btn-google {
        font-size: 15px;
    }
}