/* NALB Frontend Styles - Enhanced Version */
body .nalb-registration-wrapper,
body .nalb-login-wrapper,
body .nalb-lost-password-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    box-sizing: border-box;
}

body .nalb-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin: 30px 0;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

body .nalb-form:hover {
    box-shadow: 0 15px 50px rgba(34,108,159,0.12);
}

body .nalb-form-group {
    margin-bottom: 24px;
    position: relative;
}

body .nalb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.3px;
}

body .nalb-input,
body .nalb-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    box-sizing: border-box;
    color: #1a2634;
}

body .nalb-input:focus,
body .nalb-select:focus {
    outline: none;
    border-color: #226C9F;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(34,108,159,0.1);
}

body .nalb-input:hover,
body .nalb-select:hover {
    border-color: #a0c4e2;
    background-color: #ffffff;
}

body .nalb-input::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

body .nalb-input.valid {
    border-color: #10b981;
    background-color: #f0fdf9;
    padding-right: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2310b981" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

body .nalb-input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
    padding-right: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

body .nalb-error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 16px;
    display: none;
    position: relative;
    font-weight: 500;
}

body .nalb-error-message::before {
    content: '⚠️';
    position: absolute;
    left: -4px;
    top: -1px;
    font-size: 12px;
}

body .nalb-radio-group {
    display: flex;
    gap: 30px;
    margin-top: 8px;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

body .nalb-radio-group.has-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

body .nalb-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

body .nalb-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #226C9F;
    cursor: pointer;
}

body .nalb-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
}

body .nalb-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #226C9F;
}

body .nalb-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #226C9F;
    color: #ffffff;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(34,108,159,0.2);
}

body .nalb-btn:hover {
    background-color: #1a4f73;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,108,159,0.3);
}

body .nalb-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34,108,159,0.2);
}

body .nalb-btn-prev {
    background-color: #64748b !important;
    box-shadow: 0 4px 12px rgba(100,116,139,0.2);
}

body .nalb-btn-prev:hover {
    background-color: #475569 !important;
}

body .nalb-btn-next {
    background-color: #226C9F !important;
}

body .nalb-btn-submit {
    background: linear-gradient(135deg, #F6DC4B 0%, #f3d23d 100%) !important;
    color: #1a2634 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(246,220,75,0.3);
}

body .nalb-btn-submit:hover {
    background: linear-gradient(135deg, #f3d23d 0%, #e5c234 100%) !important;
    color: #0f1a24 !important;
}

/* Step Navigation */
body .nalb-step {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body .nalb-step.active {
    display: block !important;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message */
body #nalb-success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(16,185,129,0.2);
    animation: slideInDown 0.5s ease;
}

body #nalb-success-message h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

body #nalb-success-message p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.6;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body .nalb-registration-wrapper,
    body .nalb-login-wrapper,
    body .nalb-lost-password-wrapper {
        padding: 10px !important;
    }
    
    body .nalb-form {
        padding: 25px 20px !important;
    }
    
    body .nalb-radio-group {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    body .nalb-btn {
        width: 100%;
        margin: 5px 0;
        padding: 16px !important;
    }
    
    body .nalb-btn-prev {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    body .nalb-step h3 {
        font-size: 20px;
    }
}

/* Loading State */
body .nalb-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

body .nalb-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner 0.8s linear infinite;
}

body .nalb-btn-submit.loading::after {
    border: 3px solid rgba(26,38,52,0.2);
    border-top-color: #1a2634;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Tooltips */
body .nalb-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    color: #226C9F;
    cursor: help;
    width: 18px;
    height: 18px;
    background: #e9ecef;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
}

body .nalb-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1a2634;
    color: white;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Notification System */
.nalb-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.nalb-notification.show {
    transform: translateX(0);
}

.nalb-notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.nalb-notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.nalb-notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.strength-weak {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.strength-medium {
    background-color: #fffbeb;
    color: #f59e0b;
    border: 1px solid #fcd34d;
}

.strength-strong {
    background-color: #f0fdf4;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

/* Progress Indicator */
.nalb-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.nalb-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.nalb-progress-step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
    text-align: center;
}

.nalb-progress-step span {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #e9ecef;
    color: #64748b;
    border-radius: 50%;
    line-height: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nalb-progress-step.active span {
    background: #226C9F;
    color: white;
    box-shadow: 0 0 0 3px rgba(34,108,159,0.2);
}

.nalb-progress-step.completed span {
    background: #10b981;
    color: white;
}

/* Section Headers */
.nalb-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #F6DC4B;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nalb-section-header h3 {
    color: #226C9F;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.nalb-section-header .step-badge {
    background: #F6DC4B;
    color: #226C9F;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Required Field Indicator */
.nalb-required {
    color: #ef4444;
    margin-left: 3px;
    font-size: 14px;
}