@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Auth Container */
.nbxua-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffaf600;;
    padding: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.nbxua-auth-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* Auth Box */
.nbxua-auth-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
    display: none;
    animation: fadeInUp 0.4s ease;
}

.nbxua-auth-box.active {
    display: block;
}

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

/* Auth Header */
.nbxua-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

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

.nbxua-auth-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Form */
.nbxua-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.nbxua-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nbxua-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.nbxua-form-group small {
    font-size: 12px;
    color: #999;
    margin-top: -4px;
}

/* Input Wrapper */
.nbxua-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nbxua-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.nbxua-input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 54px; /* extra space for icon */
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.nbxua-input-wrapper input::placeholder {
    color: #b3b3b3;
}

.nbxua-input-wrapper input:focus {
    outline: none;
    border-color: #FB4E00;
    box-shadow: 0 0 0 3px rgba(251, 78, 0, 0.1);
}

/* Form Options */
.nbxua-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
}

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

.nbxua-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Links */
.nbxua-link {
    color: #FB4E00;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nbxua-link:hover {
    color: #D34300;
}

/* Form Message */
.nbxua-form-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.nbxua-form-message:not(:empty) {
    display: block;
}

.nbxua-form-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 2px solid rgba(39, 174, 96, 0.2);
}

.nbxua-form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

/* Button */
.nbxua-btn-primary {
    position: relative;
    padding: 14px 28px;
    background: linear-gradient(135deg, #FB4E00 0%, #D34300 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nbxua-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 78, 0, 0.4);
}

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

.nbxua-btn-primary.nbxua-btn-full {
    width: 100%;
}

.nbxua-btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.nbxua-btn-primary.loading span {
    opacity: 0;
}

.nbxua-btn-primary.loading .nbxua-btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Footer */
.nbxua-form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
}

.nbxua-form-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* SweetAlert Custom Styling */
.nbxua-swal-popup {
    font-family: 'Space Grotesk', sans-serif !important;
    border-radius: 20px !important;
}

.nbxua-swal-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
}

.nbxua-swal-btn {
    font-family: 'Space Grotesk', sans-serif !important;
    background: linear-gradient(135deg, #FB4E00 0%, #D34300 100%) !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.nbxua-swal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 78, 0, 0.4) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(251, 78, 0, 0.3) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #FB4E00 !important;
}

.swal2-timer-progress-bar {
    background: linear-gradient(135deg, #FB4E00 0%, #D34300 100%) !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .nbxua-auth-box {
        padding: 32px 24px;
    }

    .nbxua-form-row {
        grid-template-columns: 1fr;
    }

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